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.
diff --git a/src/window.c b/src/window.c
index 1914a3d..6c278d9 100644
--- a/src/window.c
+++ b/src/window.c
@@ -601,7 +601,7 @@
}
/*
- * 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 @@
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 @@
case 'W':
case 'x':
case Ctrl_X:
- /* window number */
+ // window number
eap->addr_type = ADDR_WINDOWS;
break;
@@ -694,8 +694,8 @@
case Ctrl_P:
case '=':
case CAR:
- /* no count */
- eap->addr_type = 0;
+ // no count
+ eap->addr_type = ADDR_NONE;
break;
}
}