summaryrefslogtreecommitdiff
path: root/src/testdir/test82.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-08-09 19:48:40 +0200
committerBram Moolenaar <Bram@vim.org>2013-08-09 19:48:40 +0200
commitf17968b54a00380d8e955bc13eb0a2ffd30ff8ea (patch)
tree96ff9e67c915542a00538c4d10c938a30eeebc38 /src/testdir/test82.in
parent86f931e1c3252798dbd60a5d4e07e3c64ae8ee74 (diff)
downloadvim-f17968b54a00380d8e955bc13eb0a2ffd30ff8ea.zip
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)
Diffstat (limited to 'src/testdir/test82.in')
-rw-r--r--src/testdir/test82.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test82.in b/src/testdir/test82.in
index 63a81e789..8503f5488 100644
--- a/src/testdir/test82.in
+++ b/src/testdir/test82.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