mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 01:46:29 +00:00
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.
6b810d92a9
This commit is contained in:
@@ -7092,10 +7092,13 @@ static int check_opt_wim(void)
|
||||
*/
|
||||
bool can_bs(int what)
|
||||
{
|
||||
if (what == BS_START && bt_prompt(curbuf)) {
|
||||
return false;
|
||||
}
|
||||
switch (*p_bs) {
|
||||
case '2': return true;
|
||||
case '1': return what != BS_START;
|
||||
case '0': return false;
|
||||
case '2': return true;
|
||||
case '1': return what != BS_START;
|
||||
case '0': return false;
|
||||
}
|
||||
return vim_strchr(p_bs, what) != NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user