mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
vim-patch:8.2.2426: allowing 'completefunc' to switch windows causes trouble
Problem: Allowing 'completefunc' to switch windows causes trouble. Solution: use "textwinlock" instead of "textlock".28976e2acc
Assert E565 instead of E578. vim-patch:8.2.0670: cannot change window when evaluating 'completefunc' Problem: Cannot change window when evaluating 'completefunc'. Solution: Make a difference between not changing text or buffers and also not changing window.6adb9ea0a6
vim-patch:8.2.5029: "textlock" is always zero Problem: "textlock" is always zero. Solution: Remove "textlock" and rename "textwinlock" to "textlock". (closes vim/vim#10489)cfe456543e
This commit is contained in:
@@ -2696,14 +2696,12 @@ char_u *get_cmdprompt(void)
|
||||
return ccline.cmdprompt;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return TRUE when the text must not be changed and we can't switch to
|
||||
* another window or buffer. Used when editing the command line etc.
|
||||
*/
|
||||
int text_locked(void)
|
||||
/// Return true when the text must not be changed and we can't switch to
|
||||
/// another window or buffer. True when editing the command line etc.
|
||||
bool text_locked(void)
|
||||
{
|
||||
if (cmdwin_type != 0) {
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
return textlock != 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user