comparison src/ex_getln.c @ 26195:41b3718d84c3 v8.2.3629

patch 8.2.3629: command completion in cmdline window uses global commands Commit: https://github.com/vim/vim/commit/a1198124370a366ff02811a43845a631b5c6e7f0 Author: mityu <mityu.mail@gmail.com> Date: Sat Nov 20 19:13:39 2021 +0000 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)
author Bram Moolenaar <Bram@vim.org>
date Sat, 20 Nov 2021 20:15:03 +0100
parents e8873138ffbb
children d413104a94c8
comparison
equal deleted inserted replaced
26194:9dab308df27e 26195:41b3718d84c3
4483 State = save_State; 4483 State = save_State;
4484 setmouse(); 4484 setmouse();
4485 4485
4486 return cmdwin_result; 4486 return cmdwin_result;
4487 } 4487 }
4488
4489 /*
4490 * Return TRUE if in the cmdwin, not editing the command line.
4491 */
4492 int
4493 is_in_cmdwin(void)
4494 {
4495 return cmdwin_type != 0 && get_cmdline_type() == NUL;
4496 }
4488 #endif // FEAT_CMDWIN 4497 #endif // FEAT_CMDWIN
4489 4498
4490 /* 4499 /*
4491 * Used for commands that either take a simple command string argument, or: 4500 * Used for commands that either take a simple command string argument, or:
4492 * cmd << endmarker 4501 * cmd << endmarker