summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-01 18:08:42 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-01 18:08:42 +0200
commitb731689e85b4153af7edc8f0a6b9f99d36d8b011 (patch)
tree368b1e876335c781e6653e36faa1e1ac17e2f924 /src/ex_cmds.c
parentd96dbd6f95ea22f609042cc9c6272f14a21ff1a5 (diff)
patch 8.1.1241: Ex command info contains confusing informationv8.1.1241
Problem: Ex command info contains confusing information. Solution: When using the NOTADR flag use ADDR_OTHER for the address type. Cleanup code using NOTADR. Check for errors in create_cmdidxs.vim. Adjust Makefile to see the errors.
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 991dc458e2..ebfcf54537 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -3157,6 +3157,13 @@ ex_update(exarg_T *eap)
void
ex_write(exarg_T *eap)
{
+ if (eap->cmdidx == CMD_saveas)
+ {
+ // :saveas does not take a range, uses all lines.
+ eap->line1 = 1;
+ eap->line2 = curbuf->b_ml.ml_line_count;
+ }
+
if (eap->usefilter) /* input lines to shell command */
do_bang(1, eap, FALSE, TRUE, FALSE);
else