mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge #11691 from janlazo/vim-8.2.0099
This commit is contained in:
commit
b6276f5aee
@ -10397,8 +10397,6 @@ bool cmd_can_preview(char_u *cmd)
|
||||
Dictionary commands_array(buf_T *buf)
|
||||
{
|
||||
Dictionary rv = ARRAY_DICT_INIT;
|
||||
Object obj = NIL;
|
||||
(void)obj; // Avoid "dead assignment" warning.
|
||||
char str[20];
|
||||
garray_T *gap = (buf == NULL) ? &ucmds : &buf->b_ucmds;
|
||||
|
||||
@ -10429,7 +10427,7 @@ Dictionary commands_array(buf_T *buf)
|
||||
PUT(d, "complete_arg", cmd->uc_compl_arg == NULL
|
||||
? NIL : STRING_OBJ(cstr_to_string((char *)cmd->uc_compl_arg)));
|
||||
|
||||
obj = NIL;
|
||||
Object obj = NIL;
|
||||
if (cmd->uc_argt & COUNT) {
|
||||
if (cmd->uc_def >= 0) {
|
||||
snprintf(str, sizeof(str), "%" PRId64, (int64_t)cmd->uc_def);
|
||||
|
@ -2007,7 +2007,7 @@ getcmdline (
|
||||
int firstc,
|
||||
long count, // only used for incremental search
|
||||
int indent, // indent for inside conditionals
|
||||
bool do_concat // unused
|
||||
bool do_concat FUNC_ATTR_UNUSED
|
||||
)
|
||||
{
|
||||
// Be prepared for situations where cmdline can be invoked recursively.
|
||||
@ -4715,8 +4715,7 @@ ExpandFromContext (
|
||||
int free_pat = FALSE;
|
||||
int i;
|
||||
|
||||
/* for ":set path=" and ":set tags=" halve backslashes for escaped
|
||||
* space */
|
||||
// for ":set path=" and ":set tags=" halve backslashes for escaped space
|
||||
if (xp->xp_backslash != XP_BS_NONE) {
|
||||
free_pat = TRUE;
|
||||
pat = vim_strsave(pat);
|
||||
@ -4984,8 +4983,7 @@ static void expand_shellcmd(char_u *filepat, int *num_file, char_u ***file,
|
||||
int ret;
|
||||
bool did_curdir = false;
|
||||
|
||||
/* for ":set path=" and ":set tags=" halve backslashes for escaped
|
||||
* space */
|
||||
// for ":set path=" and ":set tags=" halve backslashes for escaped space
|
||||
pat = vim_strsave(filepat);
|
||||
for (i = 0; pat[i]; ++i)
|
||||
if (pat[i] == '\\' && pat[i + 1] == ' ')
|
||||
|
@ -3760,7 +3760,6 @@ find_decl (
|
||||
bool retval = true;
|
||||
bool incll;
|
||||
int searchflags = flags_arg;
|
||||
bool valid;
|
||||
|
||||
pat = xmalloc(len + 7);
|
||||
|
||||
@ -3795,8 +3794,6 @@ find_decl (
|
||||
/* Search forward for the identifier, ignore comment lines. */
|
||||
clearpos(&found_pos);
|
||||
for (;; ) {
|
||||
valid = false;
|
||||
(void)valid; // Avoid "dead assignment" warning.
|
||||
t = searchit(curwin, curbuf, &curwin->w_cursor, NULL, FORWARD,
|
||||
pat, 1L, searchflags, RE_LAST, NULL);
|
||||
if (curwin->w_cursor.lnum >= old_pos.lnum) {
|
||||
@ -3831,7 +3828,7 @@ find_decl (
|
||||
curwin->w_cursor.col = 0;
|
||||
continue;
|
||||
}
|
||||
valid = is_ident(get_cursor_line_ptr(), curwin->w_cursor.col);
|
||||
bool valid = is_ident(get_cursor_line_ptr(), curwin->w_cursor.col);
|
||||
|
||||
// If the current position is not a valid identifier and a previous match is
|
||||
// present, favor that one instead.
|
||||
|
@ -1073,9 +1073,8 @@ static void tui_mode_change(UI *ui, String mode, Integer mode_idx)
|
||||
|
||||
static void tui_grid_scroll(UI *ui, Integer g, Integer startrow, Integer endrow,
|
||||
Integer startcol, Integer endcol,
|
||||
Integer rows, Integer cols)
|
||||
Integer rows, Integer cols FUNC_ATTR_UNUSED)
|
||||
{
|
||||
(void)cols; // unused
|
||||
TUIData *data = ui->data;
|
||||
UGrid *grid = &data->grid;
|
||||
int top = (int)startrow, bot = (int)endrow-1;
|
||||
|
Loading…
Reference in New Issue
Block a user