forked from aniani/vim
patch 8.2.0212: missing search/substitute pattern hardly tested
Problem: Missing search/substitute pattern hardly tested.
Solution: Add test_clear_search_pat() and tests. (Yegappan Lakshmanan,
closes #5579)
This commit is contained in:
@@ -1383,6 +1383,8 @@ func Test_sort_last_search_pat()
|
||||
call setline(1, ['3b', '1c', '2a'])
|
||||
sort //
|
||||
call assert_equal(['2a', '3b', '1c'], getline(1, '$'))
|
||||
call test_clear_search_pat()
|
||||
call assert_fails('sort //', 'E35:')
|
||||
close!
|
||||
endfunc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user