summaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-04-02 18:55:57 +0200
committerBram Moolenaar <Bram@vim.org>2021-04-02 18:55:57 +0200
commit5b8cabfef7c3707f3e53e13844d90e5a217e1e84 (patch)
tree419de5d628c379b090538a811bb6d33270dcdd85 /runtime/doc
parentdcf29ac87f4d7a62c503ba6de0d92c7779446bf2 (diff)
downloadvim-git-5b8cabfef7c3707f3e53e13844d90e5a217e1e84.tar.gz
patch 8.2.2694: when 'matchpairs' is empty every character beepsv8.2.2694
Problem: When 'matchpairs' is empty every character beeps. (Marco Hinz) Solution: Bail out when no character in 'matchpairs' was found. (closes #8053) Add assert_nobeep().
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/eval.txt1
-rw-r--r--runtime/doc/testing.txt11
2 files changed, 11 insertions, 1 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 57ab47e0c..97c968c74 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -2440,6 +2440,7 @@ assert_inrange({lower}, {upper}, {actual} [, {msg}])
Number assert {actual} is inside the range
assert_match({pat}, {text} [, {msg}])
Number assert {pat} matches {text}
+assert_nobeep({cmd}) Number assert {cmd} does not cause a beep
assert_notequal({exp}, {act} [, {msg}])
Number assert {exp} is not equal {act}
assert_notmatch({pat}, {text} [, {msg}])
diff --git a/runtime/doc/testing.txt b/runtime/doc/testing.txt
index 4e4cff0c2..5d85358d7 100644
--- a/runtime/doc/testing.txt
+++ b/runtime/doc/testing.txt
@@ -243,7 +243,8 @@ test_srand_seed([seed]) *test_srand_seed()*
assert_beeps({cmd}) *assert_beeps()*
Run {cmd} and add an error message to |v:errors| if it does
NOT produce a beep or visual bell.
- Also see |assert_fails()| and |assert-return|.
+ Also see |assert_fails()|, |assert_nobeep()| and
+ |assert-return|.
Can also be used as a |method|: >
GetCmd()->assert_beeps()
@@ -377,6 +378,14 @@ assert_match({pattern}, {actual} [, {msg}])
Can also be used as a |method|: >
getFile()->assert_match('foo.*')
<
+assert_nobeep({cmd}) *assert_nobeep()*
+ Run {cmd} and add an error message to |v:errors| if it
+ produces a beep or visual bell.
+ Also see |assert_beeps()|.
+
+ Can also be used as a |method|: >
+ GetCmd()->assert_nobeep()
+<
*assert_notequal()*
assert_notequal({expected}, {actual} [, {msg}])
The opposite of `assert_equal()`: add an error message to