Mercurial > vim
diff src/window.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 | 54ffc82f38a8 |
children | 8cc31b1b1d23 |
line wrap: on
line diff
--- a/src/window.c +++ b/src/window.c @@ -601,7 +601,7 @@ wingotofile: } /* - * Figure out the address type for ":wnncmd". + * Figure out the address type for ":wincmd". */ void get_wincmd_addr_type(char_u *arg, exarg_T *eap) @@ -656,13 +656,13 @@ get_wincmd_addr_type(char_u *arg, exarg_ case 'd': case Ctrl_D: #endif - /* window size or any count */ - eap->addr_type = ADDR_LINES; + // window size or any count + eap->addr_type = ADDR_OTHER; break; case Ctrl_HAT: case '^': - /* buffer number */ + // buffer number eap->addr_type = ADDR_BUFFERS; break; @@ -677,7 +677,7 @@ get_wincmd_addr_type(char_u *arg, exarg_ case 'W': case 'x': case Ctrl_X: - /* window number */ + // window number eap->addr_type = ADDR_WINDOWS; break; @@ -694,8 +694,8 @@ get_wincmd_addr_type(char_u *arg, exarg_ case Ctrl_P: case '=': case CAR: - /* no count */ - eap->addr_type = 0; + // no count + eap->addr_type = ADDR_NONE; break; } }