mirror of
https://github.com/vim/vim.git
synced 2025-11-13 22:54:27 -05:00
updated for version 7.4b.020
Problem: "g~ap" changes first character of next paragraph. (Manuel Ortega) Solution: Avoid subtracting (0 - 1) from todo. (Mike Williams)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
Tests for case-insensitive UTF-8 comparisons (utf_strnicmp() in mbyte.c)
|
||||
Also test "g~ap".
|
||||
|
||||
STARTTEST
|
||||
:so small.vim
|
||||
@@ -88,6 +89,15 @@ ggdG
|
||||
:for n in range(0x80, 0xBF) | call EQ(printf('xYz\xc2\x%.2XUvW', n), printf('XyZ\xc2\x%.2XuVw', n)) | endfor
|
||||
:for n in range(0xC0, 0xFF) | call LT(printf('xYz\xc2\x%.2XUvW', n), printf('XyZ\xc2\x%.2XuVw', n)) | endfor
|
||||
:call append(0, printf('%d checks passed', b:passed))
|
||||
:"
|
||||
:" test that g~ap changes one paragraph only.
|
||||
:new
|
||||
iabcd
|
||||
|
||||
defggg0g~ap:let lns = getline(1,3)
|
||||
:q!
|
||||
:call append(line('$'), lns)
|
||||
:"
|
||||
:wq! test.out
|
||||
ENDTEST
|
||||
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
3732 checks passed
|
||||
|
||||
ABCD
|
||||
|
||||
defg
|
||||
|
||||
Reference in New Issue
Block a user