summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-06-25 20:57:18 +0200
committerBram Moolenaar <Bram@vim.org>2017-06-25 20:57:18 +0200
commit182a17b1e80b92826204d967808df0d30eb2ef27 (patch)
tree7410683c601c531585b1a072132ad19fa3ba1132 /runtime
parent774e5a9673260b1b8b88463669213a96637f72e8 (diff)
downloadvim-git-182a17b1e80b92826204d967808df0d30eb2ef27.tar.gz
patch 8.0.0676: crash when closing quickfix window in autocmdv8.0.0676
Problem: Crash when closing the quickfix window in a FileType autocommand that triggers when the quickfix window is opened. Solution: Save the new value before triggering the OptionSet autocommand. Add the "starting" flag to test_override() to make the text work.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt13
1 files changed, 12 insertions, 1 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 6c5155022..c17512a8a 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1,4 +1,4 @@
-*eval.txt* For Vim version 8.0. Last change: 2017 Jun 24
+*eval.txt* For Vim version 8.0. Last change: 2017 Jun 25
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -7942,8 +7942,19 @@ test_override({name}, {val}) *test_override()*
name effect when {val} is non-zero ~
redraw disable the redrawing() function
char_avail disable the char_avail() function
+ starting reset the "starting" variable, see below
ALL clear all overrides ({val} is not used)
+ "starting" is to be used when a test should behave like
+ startup was done. Since the tests are run by sourcing a
+ script the "starting" variable is non-zero. This is usually a
+ good thing (tests run faster), but sometimes changes behavior
+ in a way that the test doesn't work properly.
+ When using: >
+ call test_override('starting', 1)
+< The value of "starting" is saved. It is restored by: >
+ call test_override('starting', 0)
+
test_settime({expr}) *test_settime()*
Set the time Vim uses internally. Currently only used for
timestamps in the history, as they are used in viminfo, and