mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 23:08:16 +00:00
ext_cmdline: Added cmdline prompt
This commit is contained in:

committed by
Björn Linse

parent
439c39a2cf
commit
6e90bc7200
@@ -11149,15 +11149,19 @@ void get_user_input(const typval_T *const argvars,
|
||||
// Only the part of the message after the last NL is considered as
|
||||
// prompt for the command line.
|
||||
const char *p = strrchr(prompt, '\n');
|
||||
if (p == NULL) {
|
||||
if (ui_is_external(kUICmdline)) {
|
||||
p = prompt;
|
||||
} else {
|
||||
p++;
|
||||
msg_start();
|
||||
msg_clr_eos();
|
||||
msg_puts_attr_len(prompt, p - prompt, echo_attr);
|
||||
msg_didout = false;
|
||||
msg_starthere();
|
||||
if (p == NULL) {
|
||||
p = prompt;
|
||||
} else {
|
||||
p++;
|
||||
msg_start();
|
||||
msg_clr_eos();
|
||||
msg_puts_attr_len(prompt, p - prompt, echo_attr);
|
||||
msg_didout = false;
|
||||
msg_starthere();
|
||||
}
|
||||
}
|
||||
cmdline_row = msg_row;
|
||||
|
||||
|
Reference in New Issue
Block a user