patch 8.1.0887: the 'l' flag in :subsitute is sticky
Problem: The 'l' flag in :subsitute is sticky.
Solution: Reset the flag. (Dominique Pelle, closes #3925)
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 681ef42..abb5f70 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -2098,7 +2098,7 @@
fp_out = NULL;
# ifdef EEXIST
/* Avoid trying lots of names while the problem is lack
- * of premission, only retry if the file already
+ * of permission, only retry if the file already
* exists. */
if (errno != EEXIST)
break;
@@ -5040,6 +5040,7 @@
}
subflags.do_error = TRUE;
subflags.do_print = FALSE;
+ subflags.do_list = FALSE;
subflags.do_count = FALSE;
subflags.do_number = FALSE;
subflags.do_ic = 0;