replace term-set completions with toggle-abs-mouse (since term-set is gone)

This commit is contained in:
K. Lange 2018-08-04 09:43:26 +09:00
parent dd1baf17ca
commit e00ab8983c

View File

@ -244,11 +244,11 @@ void tab_complete_func(rline_context_t * c) {
complete_mode = COMPLETE_COMMAND; complete_mode = COMPLETE_COMMAND;
} }
/* term-set has some commands to complete */ if (cursor_adj >= 1 && !strcmp(argv[command_adj], "toggle-abs-mouse")) {
if (cursor_adj >= 1 && !strcmp(argv[command_adj], "term-set")) {
complete_mode = COMPLETE_CUSTOM; complete_mode = COMPLETE_CUSTOM;
} }
/* complete variable names */ /* complete variable names */
if (*prefix == '$') { if (*prefix == '$') {
complete_mode = COMPLETE_VARIABLE; complete_mode = COMPLETE_VARIABLE;
@ -323,10 +323,10 @@ void tab_complete_func(rline_context_t * c) {
} else if (complete_mode == COMPLETE_CUSTOM) { } else if (complete_mode == COMPLETE_CUSTOM) {
char ** completions = NULL; char ** completions = NULL;
char * term_set_completions[] = {"scale","size","gamma","sdf","alpha",NULL}; char * toggle_abs_mouse_completions[] = {"relative","absolute",NULL};
if (!strcmp(argv[command_adj],"term-set")) { if (!strcmp(argv[command_adj],"toggle-abs-mouse")) {
completions = term_set_completions; completions = toggle_abs_mouse_completions;
} }
while (*completions) { while (*completions) {