mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 02:08:17 +00:00
Remove nonnullret deadcode: addstar.
This commit is contained in:
@@ -4331,10 +4331,7 @@ static int ins_complete(int c)
|
||||
|
||||
compl_col += startcol;
|
||||
compl_length = (int)curs_col - startcol;
|
||||
compl_pattern = addstar(line + compl_col, compl_length,
|
||||
EXPAND_FILES);
|
||||
if (compl_pattern == NULL)
|
||||
return FAIL;
|
||||
compl_pattern = addstar(line + compl_col, compl_length, EXPAND_FILES);
|
||||
} else if (ctrl_x_mode == CTRL_X_CMDLINE) {
|
||||
compl_pattern = vim_strnsave(line, curs_col);
|
||||
set_cmd_context(&compl_xp, compl_pattern,
|
||||
|
@@ -3505,8 +3505,6 @@ expand_cmdline (
|
||||
/* add star to file name, or convert to regexp if not exp. files. */
|
||||
xp->xp_pattern_len = (int)(str + col - xp->xp_pattern);
|
||||
file_str = addstar(xp->xp_pattern, xp->xp_pattern_len, xp->xp_context);
|
||||
if (file_str == NULL)
|
||||
return EXPAND_UNSUCCESSFUL;
|
||||
|
||||
if (p_wic)
|
||||
options += WILD_ICASE;
|
||||
|
Reference in New Issue
Block a user