• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revisionc37ed44f014fdcb211ba3decf81d1f3ec94a210b (tree)
Zeit2006-10-31 06:32:28
Autorvimboss
Commitervimboss

Log Message

updated for version 7.0-153

Ändern Zusammenfassung

Diff

diff -r d8af28dbfb80 -r c37ed44f014f src/if_cscope.c
--- a/src/if_cscope.c Tue Oct 24 20:29:10 2006 +0000
+++ b/src/if_cscope.c Mon Oct 30 21:32:28 2006 +0000
@@ -1100,38 +1100,44 @@
11001100 if (qfpos != NULL && *qfpos != '0' && totmatches > 0)
11011101 {
11021102 /* fill error list */
1103- FILE *f;
1104- char_u *tmp = vim_tempname('c');
1103+ FILE *f;
1104+ char_u *tmp = vim_tempname('c');
11051105 qf_info_T *qi = NULL;
11061106 win_T *wp = NULL;
11071107
11081108 f = mch_fopen((char *)tmp, "w");
1109- cs_file_results(f, nummatches);
1110- fclose(f);
1111- if (use_ll) /* Use location list */
1112- wp = curwin;
1113- /* '-' starts a new error list */
1114- if (qf_init(wp, tmp, (char_u *)"%f%*\\t%l%*\\t%m", *qfpos == '-') > 0)
1109+ if (f == NULL)
1110+ EMSG2(_(e_notopen), tmp);
1111+ else
11151112 {
1113+ cs_file_results(f, nummatches);
1114+ fclose(f);
1115+ if (use_ll) /* Use location list */
1116+ wp = curwin;
1117+ /* '-' starts a new error list */
1118+ if (qf_init(wp, tmp, (char_u *)"%f%*\\t%l%*\\t%m",
1119+ *qfpos == '-') > 0)
1120+ {
11161121 # ifdef FEAT_WINDOWS
1117- if (postponed_split != 0)
1118- {
1119- win_split(postponed_split > 0 ? postponed_split : 0,
1122+ if (postponed_split != 0)
1123+ {
1124+ win_split(postponed_split > 0 ? postponed_split : 0,
11201125 postponed_split_flags);
11211126 # ifdef FEAT_SCROLLBIND
1122- curwin->w_p_scb = FALSE;
1127+ curwin->w_p_scb = FALSE;
11231128 # endif
1124- postponed_split = 0;
1125- }
1129+ postponed_split = 0;
1130+ }
11261131 # endif
1127- if (use_ll)
1128- /*
1129- * In the location list window, use the displayed location
1130- * list. Otherwise, use the location list for the window.
1131- */
1132- qi = (bt_quickfix(wp->w_buffer) && wp->w_llist_ref != NULL) ?
1133- wp->w_llist_ref : wp->w_llist;
1134- qf_jump(qi, 0, 0, forceit);
1132+ if (use_ll)
1133+ /*
1134+ * In the location list window, use the displayed location
1135+ * list. Otherwise, use the location list for the window.
1136+ */
1137+ qi = (bt_quickfix(wp->w_buffer) && wp->w_llist_ref != NULL)
1138+ ? wp->w_llist_ref : wp->w_llist;
1139+ qf_jump(qi, 0, 0, forceit);
1140+ }
11351141 }
11361142 mch_remove(tmp);
11371143 vim_free(tmp);
@@ -1723,7 +1729,7 @@
17231729 continue;
17241730
17251731 context = (char *)alloc((unsigned)strlen(cntx)+5);
1726- if (context==NULL)
1732+ if (context == NULL)
17271733 continue;
17281734
17291735 if (strcmp(cntx, "<global>")==0)
@@ -1731,7 +1737,7 @@
17311737 else
17321738 sprintf(context, "<<%s>>", cntx);
17331739
1734- if (search==NULL)
1740+ if (search == NULL)
17351741 fprintf(f, "%s\t%s\t%s\n", fullname, slno, context);
17361742 else
17371743 fprintf(f, "%s\t%s\t%s %s\n", fullname, slno, context, search);
diff -r d8af28dbfb80 -r c37ed44f014f src/version.c
--- a/src/version.c Tue Oct 24 20:29:10 2006 +0000
+++ b/src/version.c Mon Oct 30 21:32:28 2006 +0000
@@ -667,6 +667,8 @@
667667 static int included_patches[] =
668668 { /* Add new patch number below this line */
669669 /**/
670+ 153,
671+/**/
670672 152,
671673 /**/
672674 151,
Show on old repository browser