0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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.
This commit is contained in:
Bram Moolenaar
2018-06-06 18:02:39 +02:00
parent 6d41c78e35
commit 891e1fd894
4 changed files with 26 additions and 5 deletions

View File

@@ -5733,6 +5733,10 @@ buf_spname(buf_T *buf)
#endif
if (buf->b_fname != NULL)
return buf->b_fname;
#ifdef FEAT_JOB_CHANNEL
if (bt_prompt(buf))
return (char_u *)_("[Prompt]");
#endif
return (char_u *)_("[Scratch]");
}