mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
vim-patch:8.1.0036: not restoring Insert mode if leaving prompt buffer with mouse
Problem: Not restoring Insert mode if leaving a prompt buffer by using a
mouse click.
Solution: Set b_prompt_insert appropriately. Also correct cursor position
when moving cursor to last line.
891e1fd894
This commit is contained in:
@@ -5293,6 +5293,9 @@ char_u *buf_spname(buf_T *buf)
|
||||
if (buf->b_fname != NULL) {
|
||||
return buf->b_fname;
|
||||
}
|
||||
if (bt_prompt(buf)) {
|
||||
return (char_u *)_("[Prompt]");
|
||||
}
|
||||
return (char_u *)_("[Scratch]");
|
||||
}
|
||||
if (buf->b_fname == NULL) {
|
||||
|
Reference in New Issue
Block a user