Mercurial > vim
annotate src/testdir/test_charsearch_utf8.vim @ 13774:d43718b4e232 v8.0.1759
patch 8.0.1759: memory leak from duplicate options
commit https://github.com/vim/vim/commit/09d1d51df5d9b215e583b5bbe36df46afb3db35f
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 24 20:23:56 2018 +0200
patch 8.0.1759: memory leak from duplicate options
Problem: Memory leak from duplicate options. (Yegappan Lakshmanan)
Solution: Don't set the default value twice.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 Apr 2018 20:30:08 +0200 |
parents | 95c646fd8d9b |
children | 63b02fcf1361 |
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 |