mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.1.2380: using old C style comments
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
306139005c
This commit is contained in:
parent
9d28875d50
commit
af2f0ffdf4
@ -7494,7 +7494,7 @@ static void ex_syncbind(exarg_T *eap)
|
||||
|
||||
ctrl_o[0] = Ctrl_O;
|
||||
ctrl_o[1] = 0;
|
||||
ins_typebuf(ctrl_o, REMAP_NONE, 0, TRUE, FALSE);
|
||||
ins_typebuf(ctrl_o, REMAP_NONE, 0, true, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -256,7 +256,7 @@ EXTERN linenr_T sourcing_lnum INIT(= 0); // line number of the source file
|
||||
|
||||
EXTERN int ex_nesting_level INIT(= 0); // nesting level
|
||||
EXTERN int debug_break_level INIT(= -1); // break below this level
|
||||
EXTERN int debug_did_msg INIT(= false); // did "debug mode" message
|
||||
EXTERN bool debug_did_msg INIT(= false); // did "debug mode" message
|
||||
EXTERN int debug_tick INIT(= 0); // breakpoint change count
|
||||
EXTERN int debug_backtrace_level INIT(= 0); // breakpoint backtrace level
|
||||
|
||||
|
@ -1079,13 +1079,15 @@ do_execreg(
|
||||
}
|
||||
}
|
||||
escaped = vim_strsave_escape_csi(reg->y_array[i]);
|
||||
retval = ins_typebuf(escaped, remap, 0, TRUE, silent);
|
||||
retval = ins_typebuf(escaped, remap, 0, true, silent);
|
||||
xfree(escaped);
|
||||
if (retval == FAIL)
|
||||
if (retval == FAIL) {
|
||||
return FAIL;
|
||||
if (colon && ins_typebuf((char_u *)":", remap, 0, TRUE, silent)
|
||||
== FAIL)
|
||||
}
|
||||
if (colon
|
||||
&& ins_typebuf((char_u *)":", remap, 0, true, silent) == FAIL) {
|
||||
return FAIL;
|
||||
}
|
||||
}
|
||||
reg_executing = regname == 0 ? '"' : regname; // disable the 'q' command
|
||||
}
|
||||
@ -1109,8 +1111,9 @@ static void put_reedit_in_typebuf(int silent)
|
||||
buf[0] = (char_u)(restart_edit == 'I' ? 'i' : restart_edit);
|
||||
buf[1] = NUL;
|
||||
}
|
||||
if (ins_typebuf(buf, REMAP_NONE, 0, TRUE, silent) == OK)
|
||||
if (ins_typebuf(buf, REMAP_NONE, 0, true, silent) == OK) {
|
||||
restart_edit = NUL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1130,25 +1133,29 @@ static int put_in_typebuf(
|
||||
int retval = OK;
|
||||
|
||||
put_reedit_in_typebuf(silent);
|
||||
if (colon)
|
||||
retval = ins_typebuf((char_u *)"\n", REMAP_NONE, 0, TRUE, silent);
|
||||
if (colon) {
|
||||
retval = ins_typebuf((char_u *)"\n", REMAP_NONE, 0, true, silent);
|
||||
}
|
||||
if (retval == OK) {
|
||||
char_u *p;
|
||||
|
||||
if (esc)
|
||||
if (esc) {
|
||||
p = vim_strsave_escape_csi(s);
|
||||
else
|
||||
} else {
|
||||
p = s;
|
||||
if (p == NULL)
|
||||
}
|
||||
if (p == NULL) {
|
||||
retval = FAIL;
|
||||
else
|
||||
retval = ins_typebuf(p, esc ? REMAP_NONE : REMAP_YES,
|
||||
0, TRUE, silent);
|
||||
if (esc)
|
||||
} else {
|
||||
retval = ins_typebuf(p, esc ? REMAP_NONE : REMAP_YES, 0, true, silent);
|
||||
}
|
||||
if (esc) {
|
||||
xfree(p);
|
||||
}
|
||||
}
|
||||
if (colon && retval == OK) {
|
||||
retval = ins_typebuf((char_u *)":", REMAP_NONE, 0, true, silent);
|
||||
}
|
||||
if (colon && retval == OK)
|
||||
retval = ins_typebuf((char_u *)":", REMAP_NONE, 0, TRUE, silent);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user