summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-03 22:56:30 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-03 22:56:30 +0000
commit65c923adf3589b6c237ac357fcc069085c658a02 (patch)
tree8c379ffd9462f1be67f06f9a9b3712570d219c2e /src
parentbfb2d40b6ec0b8fff51bc6fadabf4aaeb383beb8 (diff)
downloadvim-git-65c923adf3589b6c237ac357fcc069085c658a02.tar.gz
updated for version 7.0213
Diffstat (limited to 'src')
-rw-r--r--src/edit.c11
-rw-r--r--src/globals.h3
-rw-r--r--src/option.c2
-rw-r--r--src/screen.c2
-rw-r--r--src/structs.h2
-rw-r--r--src/version.h4
6 files changed, 14 insertions, 10 deletions
diff --git a/src/edit.c b/src/edit.c
index 98d287abf..5809df1bb 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -129,7 +129,7 @@ static int ins_compl_make_cyclic __ARGS((void));
static void ins_compl_upd_pum __ARGS((void));
static void ins_compl_del_pum __ARGS((void));
static int pum_wanted __ARGS((void));
-static int pum_two_or_more __ARGS((void));
+static int pum_enough_matches __ARGS((void));
static void ins_compl_dictionaries __ARGS((char_u *dict, char_u *pat, int flags, int thesaurus));
static void ins_compl_files __ARGS((int count, char_u **files, int thesaurus, int flags, regmatch_T *regmatch, char_u *buf, int *dir));
static char_u *find_line_end __ARGS((char_u *ptr));
@@ -2347,7 +2347,7 @@ ins_compl_del_pum()
static int
pum_wanted()
{
- /* 'completeopt' must contain "menu" */
+ /* 'completeopt' must contain "menu" or "menuone" */
if (vim_strchr(p_cot, 'm') == NULL)
return FALSE;
@@ -2363,9 +2363,10 @@ pum_wanted()
/*
* Return TRUE if there are two or more matches to be shown in the popup menu.
+ * One if 'completopt' contains "menuone".
*/
static int
-pum_two_or_more()
+pum_enough_matches()
{
compl_T *compl;
int i;
@@ -2382,6 +2383,8 @@ pum_two_or_more()
compl = compl->cp_next;
} while (compl != compl_first_match);
+ if (strstr((char *)p_cot, "menuone") != NULL)
+ return (i >= 1);
return (i >= 2);
}
@@ -2401,7 +2404,7 @@ ins_compl_show_pum()
colnr_T col;
int lead_len = 0;
- if (!pum_wanted() || !pum_two_or_more())
+ if (!pum_wanted() || !pum_enough_matches())
return;
/* Update the screen before drawing the popup menu over it. */
diff --git a/src/globals.h b/src/globals.h
index f13b369eb..9e0f3e4f8 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1210,7 +1210,8 @@ EXTERN option_table_T printer_opts[OPT_PRINT_NUM_OPTIONS]
# define PRT_UNIT_NAMES {"pc", "in", "mm", "pt"}
#endif
-#if defined(FEAT_PRINTER) || defined(FEAT_WINDOWS)
+#if (defined(FEAT_PRINTER) && defined(FEAT_STL_OPT)) \
+ || defined(FEAT_GUI_TABLINE)
/* Page number used for %N in 'pageheader' and 'guitablabel'. */
EXTERN linenr_T printer_page_num;
#endif
diff --git a/src/option.c b/src/option.c
index d692edf09..23b6be81e 100644
--- a/src/option.c
+++ b/src/option.c
@@ -2762,7 +2762,7 @@ static char *(p_fdm_values[]) = {"manual", "expr", "marker", "indent", "syntax",
static char *(p_fcl_values[]) = {"all", NULL};
#endif
#ifdef FEAT_INS_EXPAND
-static char *(p_cot_values[]) = {"menu", "longest", NULL};
+static char *(p_cot_values[]) = {"menu", "menuone", "longest", NULL};
#endif
static void set_option_default __ARGS((int, int opt_flags, int compatible));
diff --git a/src/screen.c b/src/screen.c
index f799b582b..c53feca31 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -5610,7 +5610,7 @@ win_redr_custom(wp, draw_ruler)
/* Use 'tabline'. Always at the first line of the screen. */
p = p_tal;
row = 0;
- fillchar = t_colors < 8 ? '_' : ' ';
+ fillchar = ' ';
attr = hl_attr(HLF_TPF);
maxwidth = Columns;
# ifdef FEAT_EVAL
diff --git a/src/structs.h b/src/structs.h
index 5b1aed61d..6a00be193 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -151,7 +151,7 @@ typedef struct
long wo_fml;
# define w_p_fml w_onebuf_opt.wo_fml /* 'foldminlines' */
long wo_fdn;
-# define w_p_fdn w_onebuf_opt.wo_fdn /* 'foldnextmax' */
+# define w_p_fdn w_onebuf_opt.wo_fdn /* 'foldnestmax' */
# ifdef FEAT_EVAL
char_u *wo_fde;
# define w_p_fde w_onebuf_opt.wo_fde /* 'foldexpr' */
diff --git a/src/version.h b/src/version.h
index 9df191388..5703a0601 100644
--- a/src/version.h
+++ b/src/version.h
@@ -36,5 +36,5 @@
#define VIM_VERSION_NODOT "vim70aa"
#define VIM_VERSION_SHORT "7.0aa"
#define VIM_VERSION_MEDIUM "7.0aa ALPHA"
-#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2006 Mar 2)"
-#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2006 Mar 2, compiled "
+#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2006 Mar 3)"
+#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2006 Mar 3, compiled "