Mercurial > vim
diff src/ex_cmds.c @ 16475:854fb0ad4be6 v8.1.1241
patch 8.1.1241: Ex command info contains confusing information
commit https://github.com/vim/vim/commit/b731689e85b4153af7edc8f0a6b9f99d36d8b011
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed May 1 18:08:42 2019 +0200
patch 8.1.1241: Ex command info contains confusing information
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 01 May 2019 18:15:07 +0200 |
parents | 4e9bea9b8025 |
children | 7e733046db1d |
line wrap: on
line diff
--- 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