forked from aniani/vim
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.
This commit is contained in:
14
src/window.c
14
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_T *eap)
|
||||
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_T *eap)
|
||||
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_T *eap)
|
||||
case Ctrl_P:
|
||||
case '=':
|
||||
case CAR:
|
||||
/* no count */
|
||||
eap->addr_type = 0;
|
||||
// no count
|
||||
eap->addr_type = ADDR_NONE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user