diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-06-06 18:02:39 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-06-06 18:02:39 +0200 |
commit | 891e1fd894720d0b99a9daefa41e8181844f819a (patch) | |
tree | ea5da71e753bf0022cc832a1397ea262d8d8a64c /src/buffer.c | |
parent | 6d41c78e353b630bc1a72cbff9160311d2a81e8c (diff) |
patch 8.1.0036: not restoring Insert mode if leaving prompt buffer with mousev8.1.0036
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.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index 1c55acbaf2..68b4a04575 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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]"); } |