Mercurial > vim
annotate src/testdir/test_preview.vim @ 17643:dfc6ba5db4ec
Added tag v8.1.1818 for changeset fe637f192d80f873a6b65a090811399c14765768
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 05 Aug 2019 20:30:07 +0200 |
parents | 5e36b2f825cb |
children | 068337e86133 |
rev | line source |
---|---|
11759
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 " Tests for the preview window |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 func Test_Psearch() |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 " this used to cause ml_get errors |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 help |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 let wincount = winnr('$') |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 0f |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 ps. |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 call assert_equal(wincount + 1, winnr('$')) |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 pclose |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 call assert_equal(wincount, winnr('$')) |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 bwipe |
5e36b2f825cb
patch 8.0.0762: ml_get error with :psearch in buffer without a name
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
13 endfunc |