Mercurial > vim
annotate src/testdir/test_registers.vim @ 13184:2ede8acf65dc v8.0.1466
patch 8.0.1466: older GTK versions don't have gtk_entry_get_text_length()
commit https://github.com/vim/vim/commit/06b77ef69f252e1ba8a2136dcbed6622bc2371bb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 4 14:32:57 2018 +0100
patch 8.0.1466: older GTK versions don't have gtk_entry_get_text_length()
Problem: Older GTK versions don't have gtk_entry_get_text_length().
Solution: Add a function with #ifdefs to take care of GTK version
differences. (Kazunobu Kuriyama, closes #2605)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 04 Feb 2018 14:45:06 +0100 |
parents | b9928ef8632f |
children | 536874138ecd |
rev | line source |
---|---|
11682
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 func Test_yank_shows_register() |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 enew |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 set report=0 |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 call setline(1, ['foo', 'bar']) |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 " Line-wise |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 exe 'norm! yy' |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 call assert_equal('1 line yanked', v:statusmsg) |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 exe 'norm! "zyy' |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 call assert_equal('1 line yanked into "z', v:statusmsg) |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 exe 'norm! yj' |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 call assert_equal('2 lines yanked', v:statusmsg) |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
13 exe 'norm! "zyj' |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
14 call assert_equal('2 lines yanked into "z', v:statusmsg) |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
15 |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
16 " Block-wise |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
17 exe "norm! \<C-V>y" |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
18 call assert_equal('block of 1 line yanked', v:statusmsg) |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
19 exe "norm! \<C-V>\"zy" |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
20 call assert_equal('block of 1 line yanked into "z', v:statusmsg) |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
21 exe "norm! \<C-V>jy" |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
22 call assert_equal('block of 2 lines yanked', v:statusmsg) |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
23 exe "norm! \<C-V>j\"zy" |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
24 call assert_equal('block of 2 lines yanked into "z', v:statusmsg) |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
25 |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
26 bwipe! |
b9928ef8632f
patch 8.0.0724: the message for yanking doesn't indicate the register
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
27 endfunc |