summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimboss <devnull@localhost>2006-10-30 21:32:28 +0000
committervimboss <devnull@localhost>2006-10-30 21:32:28 +0000
commite4cd81e93984477885700095643b07c2faf2a7c3 (patch)
treec438a23a5b431c0c4f3080714ddf2c46582b1940
parentc1ab7cacc1769d582792948daecf017ba2debf7c (diff)
downloadvim-e4cd81e93984477885700095643b07c2faf2a7c3.tar.gz
updated for version 7.0-153v7.0.153v7-0-153
-rw-r--r--src/if_cscope.c54
-rw-r--r--src/version.c2
2 files changed, 32 insertions, 24 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c
index df3213c0..f796cd92 100644
--- a/src/if_cscope.c
+++ b/src/if_cscope.c
@@ -1100,38 +1100,44 @@ cs_find_common(opt, pat, forceit, verbose, use_ll)
if (qfpos != NULL && *qfpos != '0' && totmatches > 0)
{
/* fill error list */
- FILE *f;
- char_u *tmp = vim_tempname('c');
+ FILE *f;
+ char_u *tmp = vim_tempname('c');
qf_info_T *qi = NULL;
win_T *wp = NULL;
f = mch_fopen((char *)tmp, "w");
- cs_file_results(f, nummatches);
- fclose(f);
- if (use_ll) /* Use location list */
- wp = curwin;
- /* '-' starts a new error list */
- if (qf_init(wp, tmp, (char_u *)"%f%*\\t%l%*\\t%m", *qfpos == '-') > 0)
+ if (f == NULL)
+ EMSG2(_(e_notopen), tmp);
+ else
{
-# ifdef FEAT_WINDOWS
- if (postponed_split != 0)
+ cs_file_results(f, nummatches);
+ fclose(f);
+ if (use_ll) /* Use location list */
+ wp = curwin;
+ /* '-' starts a new error list */
+ if (qf_init(wp, tmp, (char_u *)"%f%*\\t%l%*\\t%m",
+ *qfpos == '-') > 0)
{
- win_split(postponed_split > 0 ? postponed_split : 0,
+# ifdef FEAT_WINDOWS
+ if (postponed_split != 0)
+ {
+ win_split(postponed_split > 0 ? postponed_split : 0,
postponed_split_flags);
# ifdef FEAT_SCROLLBIND
- curwin->w_p_scb = FALSE;
+ curwin->w_p_scb = FALSE;
# endif
- postponed_split = 0;
- }
+ postponed_split = 0;
+ }
# endif
- if (use_ll)
- /*
- * In the location list window, use the displayed location
- * list. Otherwise, use the location list for the window.
- */
- qi = (bt_quickfix(wp->w_buffer) && wp->w_llist_ref != NULL) ?
- wp->w_llist_ref : wp->w_llist;
- qf_jump(qi, 0, 0, forceit);
+ if (use_ll)
+ /*
+ * In the location list window, use the displayed location
+ * list. Otherwise, use the location list for the window.
+ */
+ qi = (bt_quickfix(wp->w_buffer) && wp->w_llist_ref != NULL)
+ ? wp->w_llist_ref : wp->w_llist;
+ qf_jump(qi, 0, 0, forceit);
+ }
}
mch_remove(tmp);
vim_free(tmp);
@@ -1723,7 +1729,7 @@ cs_file_results(f, nummatches_a)
continue;
context = (char *)alloc((unsigned)strlen(cntx)+5);
- if (context==NULL)
+ if (context == NULL)
continue;
if (strcmp(cntx, "<global>")==0)
@@ -1731,7 +1737,7 @@ cs_file_results(f, nummatches_a)
else
sprintf(context, "<<%s>>", cntx);
- if (search==NULL)
+ if (search == NULL)
fprintf(f, "%s\t%s\t%s\n", fullname, slno, context);
else
fprintf(f, "%s\t%s\t%s %s\n", fullname, slno, context, search);
diff --git a/src/version.c b/src/version.c
index ea55ad36..fe3ea424 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 153,
+/**/
152,
/**/
151,