summaryrefslogtreecommitdiff
path: root/src/testdir/test_search.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-02-22 17:29:43 +0100
committerBram Moolenaar <Bram@vim.org>2019-02-22 17:29:43 +0100
commitcd62512c5595fa1f7a7f2c6ec1a90ea6bde3ad50 (patch)
tree75b5518db2533b2735474d126cdae88ec25e50b0 /src/testdir/test_search.vim
parent72e83c1ae535e2ebc35b114d34d0a811eb62b068 (diff)
downloadvim-git-cd62512c5595fa1f7a7f2c6ec1a90ea6bde3ad50.tar.gz
patch 8.1.0973: pattern with syntax error gives threee error messagesv8.1.0973
Problem: Pattern with syntax error gives threee error messages. (Kuang-che Wu) Solution: Remove outdated internal error. Don't fall back to other engine after an error.
Diffstat (limited to 'src/testdir/test_search.vim')
-rw-r--r--src/testdir/test_search.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_search.vim b/src/testdir/test_search.vim
index 4ff2aca5a..5cf70d4d8 100644
--- a/src/testdir/test_search.vim
+++ b/src/testdir/test_search.vim
@@ -1220,3 +1220,8 @@ func Test_large_hex_chars()
call assert_match('E678:', v:exception)
endtry
endfunc
+
+func Test_one_error_msg()
+ " This was also giving an internal error
+ call assert_fails('call search(" \\((\\v[[=P=]]){185}+ ")', 'E871:')
+endfunc