summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_edit.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-24 17:59:39 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-24 17:59:39 +0100
commit30276f2beb248557c6b33cd5418bca8b7084b0a5 (patch)
tree56f7b88712a5ffffdd10681983e70501e2e1ba58 /src/testdir/test_edit.vim
parent264b74fa545edfb92c0d7d08a02c26331cc5b168 (diff)
patch 8.1.0811: too many #ifdefsv8.1.0811
Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, the final chapter.
Diffstat (limited to 'src/testdir/test_edit.vim')
-rw-r--r--src/testdir/test_edit.vim29
1 files changed, 13 insertions, 16 deletions
diff --git a/src/testdir/test_edit.vim b/src/testdir/test_edit.vim
index 7b31469632..9a60d018e1 100644
--- a/src/testdir/test_edit.vim
+++ b/src/testdir/test_edit.vim
@@ -37,12 +37,10 @@ func Test_edit_01()
call assert_equal([''], getline(1,'$'))
%d
" 4) delete a multibyte character
- if has("multi_byte")
- call setline(1, "\u0401")
- call feedkeys("i\<del>\<esc>", 'tnix')
- call assert_equal([''], getline(1,'$'))
- %d
- endif
+ call setline(1, "\u0401")
+ call feedkeys("i\<del>\<esc>", 'tnix')
+ call assert_equal([''], getline(1,'$'))
+ %d
" 5.1) delete linebreak with 'bs' option containing eol
let _bs=&bs
set bs=eol
@@ -440,7 +438,7 @@ endfunc
func Test_edit_CTRL_()
" disabled for Windows builds, why?
- if !has("multi_byte") || !has("rightleft") || has("win32")
+ if !has("rightleft") || has("win32")
return
endif
let _encoding=&encoding
@@ -608,15 +606,14 @@ func Test_edit_CTRL_K()
endtry
call delete('Xdictionary.txt')
- if has("multi_byte")
- call test_override("char_avail", 1)
- set showcmd
- %d
- call feedkeys("A\<c-k>a:\<esc>", 'tnix')
- call assert_equal(['ä'], getline(1, '$'))
- call test_override("char_avail", 0)
- set noshowcmd
- endif
+ call test_override("char_avail", 1)
+ set showcmd
+ %d
+ call feedkeys("A\<c-k>a:\<esc>", 'tnix')
+ call assert_equal(['ä'], getline(1, '$'))
+ call test_override("char_avail", 0)
+ set noshowcmd
+
bw!
endfunc