0
0
mirror of https://github.com/vim/vim.git synced 2025-10-01 04:54:07 -04:00

patch 8.2.3629: command completion in cmdline window uses global commands

Problem:    Command completion in cmdline window uses global user commands,
            not local commands for the window where it was opened from.
Solution:   Use local commands. (closes #9168)
This commit is contained in:
mityu
2021-11-20 19:13:39 +00:00
committed by Bram Moolenaar
parent 87fd0924e2
commit a119812437
6 changed files with 73 additions and 12 deletions

View File

@@ -4485,6 +4485,15 @@ open_cmdwin(void)
return cmdwin_result;
}
/*
* Return TRUE if in the cmdwin, not editing the command line.
*/
int
is_in_cmdwin(void)
{
return cmdwin_type != 0 && get_cmdline_type() == NUL;
}
#endif // FEAT_CMDWIN
/*