diff options
Diffstat (limited to 'src/testdir')
| -rw-r--r-- | src/testdir/shared.vim | 6 | ||||
| -rw-r--r-- | src/testdir/test_edit.vim | 26 |
2 files changed, 31 insertions, 1 deletions
diff --git a/src/testdir/shared.vim b/src/testdir/shared.vim index 8e3dfc9c3..e442a59ec 100644 --- a/src/testdir/shared.vim +++ b/src/testdir/shared.vim @@ -248,7 +248,11 @@ let g:valgrind_cnt = 1 func GetVimCommand(...) if !filereadable('vimcmd') echo 'Cannot read the "vimcmd" file, falling back to ../vim.' - let lines = ['../vim'] + if !has("win32") + let lines = ['../vim'] + else + let lines = ['..\vim.exe'] + endif else let lines = readfile('vimcmd') endif diff --git a/src/testdir/test_edit.vim b/src/testdir/test_edit.vim index 9ed899d83..dddffa389 100644 --- a/src/testdir/test_edit.vim +++ b/src/testdir/test_edit.vim @@ -2148,5 +2148,31 @@ func Test_edit_overlong_file_name() bwipe! endfunc +func Test_edit_shift_bs() + CheckMSWindows + + " FIXME: this works interactively, but the test fails + throw 'Skipped: Shift-Backspace Test not working correctly :(' + + " Need to run this in Win32 Terminal, do not use CheckRunVimInTerminal + if !has("terminal") + return + endif + + " Shift Backspace should work like Backspace in insert mode + let lines =<< trim END + call setline(1, ['abc']) + END + call writefile(lines, 'Xtest_edit_shift_bs') + + let buf = RunVimInTerminal('-S Xtest_edit_shift_bs', #{rows: 3}) + call term_sendkeys(buf, "A\<S-BS>-\<esc>") + call TermWait(buf, 50) + call assert_equal('ab-', term_getline(buf, 1)) + + " clean up + call StopVimInTerminal(buf) + call delete('Xtest_edit_shift_bs') +endfunc " vim: shiftwidth=2 sts=2 expandtab |
