annotate src/testdir/test_charsearch_utf8.vim @ 15062:3a94f7918980 v8.1.0542

patch 8.1.0542: shiftwidth() does not take 'vartabstop' into account commit https://github.com/vim/vim/commit/f951416a8396a54bbbe21de1a8b16716428549f2 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 22 03:08:29 2018 +0100 patch 8.1.0542: shiftwidth() does not take 'vartabstop' into account Problem: shiftwidth() does not take 'vartabstop' into account. Solution: Use the cursor position or a position explicitly passed. Also make >> and << work better with 'vartabstop'. (Christian Brabandt)
author Bram Moolenaar <Bram@vim.org>
date Thu, 22 Nov 2018 03:15:10 +0100
parents 95c646fd8d9b
children 63b02fcf1361
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11117
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 " Tests for related f{char} and t{char} using utf-8.
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2 if !has('multi_byte')
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
3 finish
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
4 endif
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
5
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
6 " Test for t,f,F,T movement commands
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
7 function! Test_search_cmds()
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
8 new!
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
9 call setline(1, "・最初から最後まで最強のVimは最高")
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
10 1
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
11 normal! f最
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
12 call assert_equal([0, 1, 4, 0], getpos('.'))
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
13 normal! ;
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
14 call assert_equal([0, 1, 16, 0], getpos('.'))
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
15 normal! 2;
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
16 call assert_equal([0, 1, 43, 0], getpos('.'))
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
17 normal! ,
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
18 call assert_equal([0, 1, 28, 0], getpos('.'))
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
19 bw!
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
20 endfunction
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
21
e2258e86d8e1 patch 8.0.0446: the ";" command does not work after some characters
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
22 " vim: shiftwidth=2 sts=2 expandtab