summaryrefslogtreecommitdiffstats
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-05-06 13:38:48 +0000
committerBram Moolenaar <Bram@vim.org>2007-05-06 13:38:48 +0000
commitd55de224a0f05debd029c163508f2819730ff9c9 (patch)
tree525a1eff7ab3a1a26a5768bc3d44ceb620e632a0 /src/option.c
parentef2f6569ce163c6a418cc62b278a156237d21116 (diff)
updated for version 7.1a
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/option.c b/src/option.c
index d7bd92894d..6177daf181 100644
--- a/src/option.c
+++ b/src/option.c
@@ -5275,7 +5275,7 @@ insecure_flag(opt_idx, opt_flags)
* The string is copied into allocated memory.
* if ("opt_idx" == -1) "name" is used, otherwise "opt_idx" is used.
* When "set_sid" is zero set the scriptID to current_SID. When "set_sid" is
- * SID_NONE don't set the scriptID. Otherwose set the scriptID to "set_sid".
+ * SID_NONE don't set the scriptID. Otherwise set the scriptID to "set_sid".
*/
/*ARGSUSED*/
void
@@ -7144,6 +7144,8 @@ set_bool_option(opt_idx, varp, value, opt_flags)
if (curbuf->b_p_swf && p_uc)
ml_open_file(curbuf); /* create the swap file */
else
+ /* no need to reset curbuf->b_may_swap, ml_open_file() will check
+ * buf->b_p_swf */
mf_close_file(curbuf, TRUE); /* remove the swap file */
}