summaryrefslogtreecommitdiffstats
path: root/src/testdir
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/test_backspace_opt.vim28
-rw-r--r--src/testdir/test_highlight.vim7
-rw-r--r--src/testdir/test_python3.vim7
3 files changed, 41 insertions, 1 deletions
diff --git a/src/testdir/test_backspace_opt.vim b/src/testdir/test_backspace_opt.vim
index d70a6d00e4..ea28803e74 100644
--- a/src/testdir/test_backspace_opt.vim
+++ b/src/testdir/test_backspace_opt.vim
@@ -138,4 +138,32 @@ func Test_backspace_ctrl_u()
close!
endfunc
+" Test for setting 'backspace' to a number value (for backward compatibility)
+func Test_backspace_number_value()
+ new
+
+ set backspace=0
+ call setline(1, ['one two', 'three four'])
+ call cursor(2, 1)
+ exe "normal! A\<C-W>\<C-U>"
+ call assert_equal('three four', getline(2))
+
+ set backspace=1
+ exe "normal! A\<CR>five\<C-W>\<C-U>\<C-W>\<C-U>"
+ call assert_equal(['one two', 'three four'], getline(1, '$'))
+
+ set backspace=2
+ call cursor(2, 7)
+ exe "normal! ihalf\<C-U>"
+ call assert_equal('three four', getline(2))
+
+ set backspace=3
+ call cursor(2, 7)
+ exe "normal! ihalf\<C-U>"
+ call assert_equal('four', getline(2))
+
+ bw!
+ set backspace&
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab
diff --git a/src/testdir/test_highlight.vim b/src/testdir/test_highlight.vim
index feccf84b6c..a8ef8028b7 100644
--- a/src/testdir/test_highlight.vim
+++ b/src/testdir/test_highlight.vim
@@ -878,6 +878,13 @@ func Test_highlight_start_stop()
call assert_match("stop=^[[27h;^[[ r;", HighlightArgs('HlGrp2'))
hi HlGrp2 stop=NONE
call assert_notmatch("stop=", HighlightArgs('HlGrp2'))
+ set t_xy=^[foo;
+ set t_xz=^[bar;
+ hi HlGrp3 start=t_xy stop=t_xz
+ let d = hlget('HlGrp3')
+ call assert_equal('^[foo;', d[0].start)
+ call assert_equal('^[bar;', d[0].stop)
+ set t_xy= t_xz=
hi clear
endfunc
diff --git a/src/testdir/test_python3.vim b/src/testdir/test_python3.vim
index 5de94649ac..b7140ee7bc 100644
--- a/src/testdir/test_python3.vim
+++ b/src/testdir/test_python3.vim
@@ -375,6 +375,7 @@ func Test_python3_opt_reset_local_to_global()
\ ['include', 'ginc', 'linc', ''],
\ ['dict', 'gdict', 'ldict', ''],
\ ['thesaurus', 'gtsr', 'ltsr', ''],
+ \ ['thesaurusfunc', 'Gtsrfu', 'Ltsrfu', ''],
\ ['formatprg', 'gfprg', 'lfprg', ''],
\ ['errorformat', '%f:%l:%m', '%s-%l-%m', ''],
\ ['grepprg', 'ggprg', 'lgprg', ''],
@@ -408,9 +409,13 @@ func Test_python3_opt_reset_local_to_global()
" Set the global and window-local option values and then clear the
" window-local option value.
let wopts = [
+ \ ['fillchars', 'fold:>', 'fold:+', ''],
+ \ ['listchars', 'tab:>>', 'tab:--', ''],
\ ['scrolloff', 5, 10, -1],
+ \ ['showbreak', '>>', '++', ''],
\ ['sidescrolloff', 6, 12, -1],
- \ ['statusline', '%<%f', '%<%F', '']]
+ \ ['statusline', '%<%f', '%<%F', ''],
+ \ ['virtualedit', 'block', 'insert', '']]
for opt in wopts
py3 << trim
pyopt = vim.bindeval("opt")