diff options
Diffstat (limited to 'src/nvim/ex_getln.c')
| -rw-r--r-- | src/nvim/ex_getln.c | 10 | 
1 files changed, 4 insertions, 6 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 92c9d83045..4c26cfe500 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -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;  }  | 
