Problem: Too many #ifdefs.
Solution: Gradudate the +cmdline_info feature. (Martin Tournoij,
closes #11330)
*'ruler'* *'ru'* *'noruler'* *'noru'*
'ruler' 'ru' boolean (default off, set in |defaults.vim|)
global
- {not available when compiled without the
- |+cmdline_info| feature}
Show the line and column number of the cursor position, separated by a
comma. When there is room, the relative position of the displayed
text in the file is shown on the far right:
'showcmd' 'sc' boolean (Vim default: on, off for Unix,
Vi default: off, set in |defaults.vim|)
global
- {not available when compiled without the
- |+cmdline_info| feature}
Show (partial) command in the last line of the screen. Set this
option off if your terminal is slow.
In Visual mode the size of the selected area is shown:
*+clipboard_working* |clipboard| support compiled-in and working
T *+cmdline_compl* command line completion |cmdline-completion|
T *+cmdline_hist* command line history |cmdline-history|
-N *+cmdline_info* |'showcmd'| and |'ruler'|
+T *+cmdline_info* |'showcmd'| and |'ruler'|; Always enabled since
+ 9.0.0747
T *+cmdwin* |cmdline-window| support; Always enabled since 9.0.0657
T *+comments* |'comments'| support
N *+conceal* "conceal" support, see |conceal| |:syn-conceal| etc.
return OK;
}
-#if defined(FEAT_QUICKFIX) || defined(FEAT_SYN_HL) || defined(PROTO)
+#if defined(FEAT_QUICKFIX) || defined(FEAT_SYN_HL) || defined(FEAT_SPELL) || defined(PROTO)
/*
* Parse a list of arguments (file names), expand them and return in
* "fnames[fcountp]". When "wig" is TRUE, removes files matching 'wildignore'.
}
}
-#if defined(FEAT_QUICKFIX) || defined(FEAT_EVAL) || defined(PROTO)
+#if defined(FEAT_QUICKFIX) || defined(FEAT_EVAL) || defined(FEAT_SPELL) || defined(PROTO)
/*
* Find file in buffer list by name (it has to be for the current window).
* Returns NULL if not found.
(long)curbuf->b_ml.ml_line_count);
if (curbuf->b_ml.ml_flags & ML_EMPTY)
vim_snprintf_add(buffer, IOSIZE, "%s", _(no_lines_msg));
-#ifdef FEAT_CMDL_INFO
else if (p_ru)
// Current line and column are already on the screen -- webb
vim_snprintf_add(buffer, IOSIZE,
NGETTEXT("%ld line --%d%%--", "%ld lines --%d%%--",
curbuf->b_ml.ml_line_count),
(long)curbuf->b_ml.ml_line_count, n);
-#endif
else
{
vim_snprintf_add(buffer, IOSIZE,
}
#endif // FEAT_STL_OPT
-#if defined(FEAT_STL_OPT) || defined(FEAT_CMDL_INFO) \
- || defined(FEAT_GUI_TABLINE) || defined(PROTO)
/*
* Get relative cursor position in window into "buf[buflen]", in the form 99%,
* using "Top", "Bot" or "All" when appropriate.
? (int)(above / ((above + below) / 100L))
: (int)(above * 100L / (above + below)));
}
-#endif
/*
* Append (file 2 of 8) to "buf[buflen]", if editing more than one file.
int *headp UNUSED)
{
win_T *wp = cts->cts_win;
-#ifdef FEAT_PROP_POPUP
+#if defined(FEAT_PROP_POPUP) || defined(FEAT_LINEBREAK)
char_u *line = cts->cts_line; // start of the line
#endif
char_u *s = cts->cts_ptr;
)
putcmdline(c, TRUE);
}
-#ifdef FEAT_CMDL_INFO
else
add_to_showcmd(c);
-#endif
++no_mapping;
++allow_keys;
cc = plain_vgetc();
int get_term_attr = FALSE;
#endif
-#ifdef FEAT_SYN_HL
+#if defined(FEAT_SYN_HL) || defined(FEAT_DIFF)
// margin columns for the screen line, needed for when 'cursorlineopt'
// contains "screenline"
int left_curline_col = 0;
#if defined(FEAT_CONCEAL) || defined(FEAT_SEARCH_EXTRA)
int match_conc = 0; // cchar for match functions
+#endif
+#if defined(FEAT_CONCEAL) || defined(FEAT_SEARCH_EXTRA) || defined(FEAT_LINEBREAK)
int on_last_col = FALSE;
#endif
#ifdef FEAT_CONCEAL
screen_puts(NameBuff, row, (int)(this_ru_col - STRLEN(NameBuff)
- 1 + wp->w_wincol), attr);
-#ifdef FEAT_CMDL_INFO
win_redr_ruler(wp, TRUE, ignore_pum);
-#endif
}
/*
redraw_custom_statusline(curwin);
else
#endif
-#ifdef FEAT_CMDL_INFO
win_redr_ruler(curwin, always, FALSE);
-#endif
if (need_maketitle
#ifdef FEAT_STL_OPT
draw_tabline();
}
-#if defined(FEAT_CMDL_INFO) || defined(PROTO)
void
win_redr_ruler(win_T *wp, int always, int ignore_pum)
{
#endif
}
}
-#endif
/*
* To be called when "updating_screen" was set before and now the postponed
if (redraw_tabline)
draw_tabline();
- if (wp->w_redr_status
-# ifdef FEAT_CMDL_INFO
- || p_ru
-# endif
+ if (wp->w_redr_status || p_ru
# ifdef FEAT_STL_OPT
|| *p_stl != NUL || *wp->w_p_stl != NUL
# endif
#endif
setmouse();
-#ifdef FEAT_CMDL_INFO
clear_showcmd();
-#endif
#ifdef FEAT_RIGHTLEFT
// there is no reverse replace mode
revins_on = (State == MODE_INSERT && p_ri);
}
AppendToRedobuff((char_u *)CTRL_V_STR); // CTRL-V
-#ifdef FEAT_CMDL_INFO
add_to_showcmd_c(Ctrl_V);
-#endif
// Do not change any modifyOtherKeys ESC sequence to a normal key for
// CTRL-SHIFT-V.
// when the line fits in 'columns' the '^' is at the start of the next
// line and will not removed by the redraw
edit_unputchar();
-#ifdef FEAT_CMDL_INFO
clear_showcmd();
-#endif
insert_special(c, FALSE, TRUE);
#ifdef FEAT_RIGHTLEFT
// character for i_CTRL-V_digit.
break;
-#ifdef FEAT_CMDL_INFO
if ((State & MODE_CMDLINE) == 0 && MB_BYTE2LEN_CHECK(nc) == 1)
add_to_showcmd(nc);
-#endif
if (nc == 'x' || nc == 'X')
hex = TRUE;
else if (nc == 'o' || nc == 'O')
ins_redraw(FALSE);
edit_putchar('"', TRUE);
-#ifdef FEAT_CMDL_INFO
add_to_showcmd_c(Ctrl_R);
-#endif
}
#ifdef USE_ON_FLY_SCROLL
{
// Get a third key for literal register insertion
literally = regname;
-#ifdef FEAT_CMDL_INFO
add_to_showcmd_c(literally);
-#endif
regname = plain_vgetc();
LANGMAP_ADJUST(regname, TRUE);
}
ins_need_undo = TRUE;
u_sync_once = 0;
#endif
-#ifdef FEAT_CMDL_INFO
clear_showcmd();
-#endif
// If the inserted register is empty, we need to remove the '"'
if (need_redraw || stuff_empty())
edit_putchar('?', TRUE);
did_putchar = TRUE;
-#ifdef FEAT_CMDL_INFO
add_to_showcmd_c(Ctrl_K);
-#endif
}
#ifdef USE_ON_FLY_SCROLL
if (IS_SPECIAL(c) || mod_mask) // special key
{
-#ifdef FEAT_CMDL_INFO
clear_showcmd();
-#endif
insert_special(c, TRUE, FALSE);
return NUL;
}
edit_putchar(c, TRUE);
did_putchar = TRUE;
}
-#ifdef FEAT_CMDL_INFO
add_to_showcmd_c(c);
-#endif
}
++no_mapping;
++allow_keys;
{
AppendToRedobuff((char_u *)CTRL_V_STR);
c = digraph_get(c, cc, TRUE);
-#ifdef FEAT_CMDL_INFO
clear_showcmd();
-#endif
return c;
}
}
-#ifdef FEAT_CMDL_INFO
clear_showcmd();
-#endif
return NUL;
}
#endif
EXTERN char e_word_characters_differ_between_spell_files[]
INIT(= N_("E763: Word characters differ between spell files"));
#endif
-#if defined(FEAT_SYN_HL) || defined(FEAT_COMPL_FUNC)
+#if defined(FEAT_SYN_HL) || defined(FEAT_COMPL_FUNC) || defined(FEAT_SPELL)
EXTERN char e_option_str_is_not_set[]
INIT(= N_("E764: Option '%s' is not set"));
#endif
EXTERN char e_redefining_imported_item_str[]
INIT(= N_("E1213: Redefining imported item \"%s\""));
#endif
-#if defined(FEAT_DIGRAPHS) && defined(FEAT_EVAL)
+#if defined(FEAT_DIGRAPHS)
EXTERN char e_digraph_must_be_just_two_characters_str[]
INIT(= N_("E1214: Digraph must be just two characters: %s"));
EXTERN char e_digraph_argument_must_be_one_character_str[]
#endif
},
{"scrollbind", 1},
- {"showcmd",
-#ifdef FEAT_CMDL_INFO
- 1
-#else
- 0
-#endif
- },
- {"cmdline_info",
-#ifdef FEAT_CMDL_INFO
- 1
-#else
- 0
-#endif
- },
+ {"showcmd", 1},
+ {"cmdline_info", 1},
{"signs",
#ifdef FEAT_SIGNS
1
p = highlight_has_attr(id, HL_ITALIC, modec);
break;
- case 'n':
+ case 'n':
if (TOLOWER_ASC(what[1]) == 'o') // nocombine
p = highlight_has_attr(id, HL_NOCOMBINE, modec);
else // name
* +builtin_terms all builtin termcap entries included
* +float Floating point variables.
* +cmdwin Command line window.
+ * +cmdline_info 'showcmd' and 'ruler' options.
*
* Obsolete:
* +tag_old_static Old style static tags: "file:tag file ..".
# define VIM_BACKTICK // internal backtick expansion
#endif
-/*
- * +cmdline_info 'showcmd' and 'ruler' options.
- */
-#ifdef FEAT_NORMAL
-# define FEAT_CMDL_INFO
-#endif
-
/*
* +linebreak 'showbreak', 'breakat' and 'linebreak' options.
* Also 'numberwidth'.
*/
#ifdef FEAT_NORMAL
# define FEAT_STL_OPT
-# ifndef FEAT_CMDL_INFO
-# define FEAT_CMDL_INFO // 'ruler' is required for 'statusline'
-# endif
#endif
/*
// 'ttimeoutlen' for complete key code
int mapdepth = 0; // check for recursive mapping
int mode_deleted = FALSE; // set when mode has been deleted
-#ifdef FEAT_CMDL_INFO
int new_wcol, new_wrow;
-#endif
#ifdef FEAT_GUI
int shape_changed = FALSE; // adjusted cursor shape
#endif
{
long wait_time;
int keylen = 0;
-#ifdef FEAT_CMDL_INFO
int showcmd_idx;
-#endif
check_end_reg_executing(advance);
/*
* ui_breakcheck() is slow, don't use it too often when
* place does not matter.
*/
c = 0;
-#ifdef FEAT_CMDL_INFO
new_wcol = curwin->w_wcol;
new_wrow = curwin->w_wrow;
-#endif
if ( advance
&& typebuf.tb_len == 1
&& typebuf.tb_buf[typebuf.tb_off] == ESC
}
setcursor();
out_flush();
-#ifdef FEAT_CMDL_INFO
new_wcol = curwin->w_wcol;
new_wrow = curwin->w_wrow;
-#endif
curwin->w_wcol = old_wcol;
curwin->w_wrow = old_wrow;
}
* input from the user), show the partially matched characters
* to the user with showcmd.
*/
-#ifdef FEAT_CMDL_INFO
showcmd_idx = 0;
-#endif
c1 = 0;
if (typebuf.tb_len > 0 && advance && !exmode_active)
{
setcursor(); // put cursor back where it belongs
c1 = 1;
}
-#ifdef FEAT_CMDL_INFO
// need to use the col and row from above here
old_wcol = curwin->w_wcol;
old_wrow = curwin->w_wrow;
typebuf.tb_buf[typebuf.tb_off + showcmd_idx++]);
curwin->w_wcol = old_wcol;
curwin->w_wrow = old_wrow;
-#endif
}
// this looks nice when typing a dead character map
typebuf.tb_buflen - typebuf.tb_off - typebuf.tb_len - 1,
wait_time);
-#ifdef FEAT_CMDL_INFO
if (showcmd_idx != 0)
pop_showcmd();
-#endif
if (c1 == 1)
{
if (State & MODE_INSERT)
return retval;
}
-#if defined(FEAT_EVAL) || defined(PROTO)
+#if defined(FEAT_EVAL) || defined(FEAT_SPELL) || defined(PROTO)
/*
* Return the lhs or rhs of a mapping, with the key codes turned into printable
* strings, in an allocated string.
static void set_vcount_ca(cmdarg_T *cap, int *set_prevcount);
#endif
static void unshift_special(cmdarg_T *cap);
-#ifdef FEAT_CMDL_INFO
static void del_from_showcmd(int);
-#endif
/*
* nv_*(): functions called to handle Normal and Visual mode commands.
if (c == K_DEL || c == K_KDEL)
{
cap->count0 /= 10;
-#ifdef FEAT_CMDL_INFO
del_from_showcmd(4); // delete the digit and ~@%
-#endif
}
else if (cap->count0 > 99999999L)
{
--no_mapping;
--allow_keys;
}
-#ifdef FEAT_CMDL_INFO
*need_flushbuf |= add_to_showcmd(c);
-#endif
}
// If we got CTRL-W there may be a/another count
LANGMAP_ADJUST(c, TRUE);
--no_mapping;
--allow_keys;
-#ifdef FEAT_CMDL_INFO
*need_flushbuf |= add_to_showcmd(c);
-#endif
goto getcount; // jump back
}
}
*/
cap->nchar = plain_vgetc();
LANGMAP_ADJUST(cap->nchar, TRUE);
-#ifdef FEAT_CMDL_INFO
*need_flushbuf |= add_to_showcmd(cap->nchar);
-#endif
if (cap->nchar == 'r' || cap->nchar == '\'' || cap->nchar == '`'
|| cap->nchar == Ctrl_BSL)
{
p_smd = save_smd;
#endif
State = MODE_NORMAL_BUSY;
-#ifdef FEAT_CMDL_INFO
*need_flushbuf |= add_to_showcmd(*cp);
-#endif
if (!lit)
{
if (c > 0)
{
*cp = c;
-# ifdef FEAT_CMDL_INFO
// Guessing how to update showcmd here...
del_from_showcmd(3);
*need_flushbuf |= add_to_showcmd(*cp);
-# endif
}
}
#endif
if (KeyTyped && !KeyStuffed)
win_ensure_size();
-#ifdef FEAT_CMDL_INFO
need_flushbuf = add_to_showcmd(c);
-#endif
// Get the command count
c = normal_cmd_get_count(&ca, c, toplevel, set_prevcount, &ctrl_w,
if (normal_cmd_needs_more_chars(&ca, nv_cmds[idx].cmd_flags))
idx = normal_cmd_get_more_chars(idx, &ca, &need_flushbuf);
-#ifdef FEAT_CMDL_INFO
// Flush the showcmd characters onto the screen so we can see them while
// the command is being executed. Only do this when the shown command was
// actually displayed, otherwise this will slow down a lot when executing
// mappings.
if (need_flushbuf)
out_flush();
-#endif
+
if (ca.cmdchar != K_IGNORE)
{
if (ex_normal_busy)
}
#endif
-#ifdef FEAT_CMDL_INFO
if (oap->op_type == OP_NOP && oap->regname == 0
&& ca.cmdchar != K_CURSORHOLD)
clear_showcmd();
-#endif
checkpcmark(); // check if we moved since setting pcmark
vim_free(ca.searchbuf);
{
if (mode_displayed)
clear_cmdline = TRUE; // unshow visual mode later
-#ifdef FEAT_CMDL_INFO
else
clear_showcmd();
-#endif
}
-#if defined(FEAT_CMDL_INFO) || defined(PROTO)
/*
* Routines for displaying a partly typed command
*/
setcursor(); // put cursor back where it belongs
}
-#endif
/*
* When "check" is FALSE, prepare for commands that scroll the window.
LANGMAP_ADJUST(nchar, TRUE);
--no_mapping;
--allow_keys;
-#ifdef FEAT_CMDL_INFO
(void)add_to_showcmd(nchar);
-#endif
+
if (nchar == K_DEL || nchar == K_KDEL)
n /= 10;
else if (VIM_ISDIGIT(nchar))
LANGMAP_ADJUST(nchar, TRUE);
--no_mapping;
--allow_keys;
-#ifdef FEAT_CMDL_INFO
(void)add_to_showcmd(nchar);
-#endif
+
if (vim_strchr((char_u *)"gGwW", nchar) == NULL)
{
clearopbeep(cap->oap);
return opt_idx;
}
-#if defined(FEAT_EVAL) || defined(FEAT_TCL) || defined(FEAT_MZSCHEME)
+#if defined(FEAT_EVAL) || defined(FEAT_TCL) || defined(FEAT_MZSCHEME) || defined(FEAT_SPELL)
/*
* Get the value for an option.
*
static int old_p_paste = FALSE;
static int save_sm = 0;
static int save_sta = 0;
-#ifdef FEAT_CMDL_INFO
static int save_ru = 0;
-#endif
#ifdef FEAT_RIGHTLEFT
static int save_ri = 0;
static int save_hkmap = 0;
// save global options
save_sm = p_sm;
save_sta = p_sta;
-#ifdef FEAT_CMDL_INFO
save_ru = p_ru;
-#endif
#ifdef FEAT_RIGHTLEFT
save_ri = p_ri;
save_hkmap = p_hkmap;
// set global options
p_sm = 0; // no showmatch
p_sta = 0; // no smarttab
-#ifdef FEAT_CMDL_INFO
if (p_ru)
status_redraw_all(); // redraw to remove the ruler
p_ru = 0; // no ruler
-#endif
#ifdef FEAT_RIGHTLEFT
p_ri = 0; // no reverse insert
p_hkmap = 0; // no Hebrew keyboard
// restore global options
p_sm = save_sm;
p_sta = save_sta;
-#ifdef FEAT_CMDL_INFO
if (p_ru != save_ru)
status_redraw_all(); // redraw to draw the ruler
p_ru = save_ru;
-#endif
#ifdef FEAT_RIGHTLEFT
p_ri = save_ri;
p_hkmap = save_hkmap;
#if defined(DYNAMIC_RUBY)
EXTERN char_u *p_rubydll; // 'rubydll'
#endif
-#ifdef FEAT_CMDL_INFO
EXTERN int p_ru; // 'ruler'
-#endif
#ifdef FEAT_STL_OPT
EXTERN char_u *p_ruf; // 'rulerformat'
#endif
#ifdef FEAT_LINEBREAK
EXTERN char_u *p_sbr; // 'showbreak'
#endif
-#ifdef FEAT_CMDL_INFO
EXTERN int p_sc; // 'showcmd'
-#endif
EXTERN int p_sft; // 'showfulltag'
EXTERN int p_sm; // 'showmatch'
EXTERN int p_smd; // 'showmode'
#endif
SCTX_INIT},
{"ruler", "ru", P_BOOL|P_VI_DEF|P_VIM|P_RSTAT,
-#ifdef FEAT_CMDL_INFO
(char_u *)&p_ru, PV_NONE,
-#else
- (char_u *)NULL, PV_NONE,
-#endif
{(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
{"rulerformat", "ruf", P_STRING|P_VI_DEF|P_ALLOCED|P_RSTAT|P_MLE,
#ifdef FEAT_STL_OPT
#endif
{(char_u *)"", (char_u *)0L} SCTX_INIT},
{"showcmd", "sc", P_BOOL|P_VIM,
-#ifdef FEAT_CMDL_INFO
(char_u *)&p_sc, PV_NONE,
-#else
- (char_u *)NULL, PV_NONE,
-#endif
{(char_u *)FALSE,
#ifdef UNIX
(char_u *)FALSE
msg_clr_eos();
}
-#ifdef FEAT_CMDL_INFO
// In Visual mode the size of the selected area must be redrawn.
if (VIsual_active)
clear_showcmd();
// message and must be redrawn
if (redrawing() && lastwin->w_status_height == 0)
win_redr_ruler(lastwin, TRUE, FALSE);
-#endif
+
redraw_cmdline = FALSE;
redraw_mode = FALSE;
clear_cmdline = FALSE;
void
comp_col(void)
{
-#if defined(FEAT_CMDL_INFO)
int last_has_status = (p_ls == 2 || (p_ls == 1 && !ONE_WINDOW));
sc_col = 0;
ru_col = 0;
if (p_ru)
{
-# ifdef FEAT_STL_OPT
+#ifdef FEAT_STL_OPT
ru_col = (ru_wid ? ru_wid : COL_RULER) + 1;
-# else
+#else
ru_col = COL_RULER + 1;
-# endif
+#endif
// no last status line, adjust sc_col
if (!last_has_status)
sc_col = ru_col;
sc_col = 1;
if (ru_col <= 0)
ru_col = 1;
-#else
- sc_col = Columns;
- ru_col = Columns;
-#endif
#ifdef FEAT_EVAL
set_vim_var_nr(VV_ECHOSPACE, sc_col - 1);
#endif
STRCAT(p, line + curwin->w_cursor.col + STRLEN(repl_from));
ml_replace(curwin->w_cursor.lnum, p, FALSE);
changed_bytes(curwin->w_cursor.lnum, curwin->w_cursor.col);
+#if defined(FEAT_PROP_POPUP)
if (curbuf->b_has_textprop && addlen != 0)
adjust_prop_columns(curwin->w_cursor.lnum,
curwin->w_cursor.col, addlen, APC_SUBSTITUTE);
+#endif
if (curwin->w_cursor.lnum != prev_lnum)
{
curwin->w_cursor.col = c;
changed_bytes(curwin->w_cursor.lnum, c);
+#if defined(FEAT_PROP_POPUP)
if (curbuf->b_has_textprop && len_diff != 0)
adjust_prop_columns(curwin->w_cursor.lnum, c, len_diff,
APC_SUBSTITUTE);
+#endif
}
}
else
int wo_spell;
# define w_p_spell w_onebuf_opt.wo_spell // 'spell'
#endif
-#ifdef FEAT_SYN_HL
+#if defined(FEAT_SYN_HL) || defined(FEAT_FOLDING) || defined(FEAT_DIFF)
int wo_cuc;
# define w_p_cuc w_onebuf_opt.wo_cuc // 'cursorcolumn'
int wo_cul;
linenr_T w_redraw_bot; // when != 0: last line needing redraw
int w_redr_status; // if TRUE status line must be redrawn
-#ifdef FEAT_CMDL_INFO
// remember what is shown in the ruler for this window (if 'ruler' set)
pos_T w_ru_cursor; // cursor position shown in ruler
colnr_T w_ru_virtcol; // virtcol shown in ruler
linenr_T w_ru_topline; // topline shown in ruler
linenr_T w_ru_line_count; // line count used for ruler
-# ifdef FEAT_DIFF
+#ifdef FEAT_DIFF
int w_ru_topfill; // topfill shown in ruler
-# endif
- char w_ru_empty; // TRUE if ruler shows 0-1 (empty line)
#endif
+ char w_ru_empty; // TRUE if ruler shows 0-1 (empty line)
int w_alt_fnum; // alternate file (for # and CTRL-^)
long_u w_p_fde_flags; // flags for 'foldexpr'
long_u w_p_fdt_flags; // flags for 'foldtext'
#endif
-#ifdef FEAT_SYN_HL
+#if defined(FEAT_SIGNS) || defined(FEAT_FOLDING) || defined(FEAT_DIFF)
int *w_p_cc_cols; // array of columns to highlight or NULL
char_u w_p_culopt_flags; // flags for cursorline highlighting
#endif
long reglen = 0;
int type;
-#ifdef FEAT_CMDL_INFO
if (add_to_showcmd(prev_c))
if (add_to_showcmd('"'))
out_flush();
-#endif
+
c = term_vgetc();
-#ifdef FEAT_CMDL_INFO
clear_showcmd();
-#endif
+
if (!term_use_loop())
// job finished while waiting for a character
return;
int prev_raw_c = raw_c;
int prev_mod_mask = mod_mask;
-#ifdef FEAT_CMDL_INFO
if (add_to_showcmd(c))
out_flush();
-#endif
+
raw_c = term_vgetc();
c = raw_c_to_ctrl(raw_c);
-#ifdef FEAT_CMDL_INFO
clear_showcmd();
-#endif
+
if (!term_use_loop_check(TRUE)
|| in_terminal_loop != curbuf->b_term)
// job finished while waiting for a character
#endif
"+cmdline_compl",
"+cmdline_hist",
-#ifdef FEAT_CMDL_INFO
"+cmdline_info",
-#else
- "-cmdline_info",
-#endif
"+comments",
#ifdef FEAT_CONCEAL
"+conceal",
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 747,
/**/
746,
/**/
LANGMAP_ADJUST(xchar, TRUE);
--no_mapping;
--allow_keys;
-#ifdef FEAT_CMDL_INFO
(void)add_to_showcmd(xchar);
-#endif
+
switch (xchar)
{
#if defined(FEAT_QUICKFIX)
if (fr == NULL)
// This can happen when calling win_move_separator() on the rightmost
// window. Just don't do anything.
- return;
+ return;
// grow frame fr by offset lines
frame_new_width(fr, fr->fr_width + offset, left, FALSE);