1
0
forked from aniani/vim

patch 8.1.0032: BS in prompt buffer starts new line

Problem:    BS in prompt buffer starts new line.
Solution:   Do not allows BS over the prompt.  Make term_sendkeys() handle
            special keys. Add a test.
This commit is contained in:
Bram Moolenaar
2018-06-04 17:28:44 +02:00
parent c8523e2e6c
commit 6b810d92a9
4 changed files with 68 additions and 9 deletions

View File

@@ -12439,6 +12439,10 @@ check_opt_wim(void)
can_bs(
int what) /* BS_INDENT, BS_EOL or BS_START */
{
#ifdef FEAT_JOB_CHANNEL
if (what == BS_START && bt_prompt(curbuf))
return FALSE;
#endif
switch (*p_bs)
{
case '2': return TRUE;