mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.4958: a couple conditions are always true
Problem: A couple conditions are always true. Solution: Remove the conditions. (Goc Dundar, closes #10428)
This commit is contained in:
committed by
Bram Moolenaar
parent
b559b302e0
commit
dd41037552
@@ -9788,8 +9788,6 @@ f_spellsuggest(typval_T *argvars UNUSED, typval_T *rettv)
|
||||
}
|
||||
|
||||
#ifdef FEAT_SPELL
|
||||
if (*curwin->w_s->b_p_spl != NUL)
|
||||
{
|
||||
str = tv_get_string(&argvars[0]);
|
||||
if (argvars[1].v_type != VAR_UNKNOWN)
|
||||
{
|
||||
@@ -9824,7 +9822,6 @@ f_spellsuggest(typval_T *argvars UNUSED, typval_T *rettv)
|
||||
}
|
||||
}
|
||||
ga_clear(&ga);
|
||||
}
|
||||
curwin->w_p_spell = wo_spell_save;
|
||||
#endif
|
||||
}
|
||||
|
@@ -2494,7 +2494,7 @@ qf_push_dir(char_u *dirbuf, struct dir_stack_T **stackptr, int is_file_stack)
|
||||
// store directory on the stack
|
||||
if (vim_isAbsName(dirbuf)
|
||||
|| (*stackptr)->next == NULL
|
||||
|| (*stackptr && is_file_stack))
|
||||
|| is_file_stack)
|
||||
(*stackptr)->dirname = vim_strsave(dirbuf);
|
||||
else
|
||||
{
|
||||
|
@@ -746,6 +746,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
4958,
|
||||
/**/
|
||||
4957,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user