From e986970f4d13b8280556dec15d464063984faa84 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 25 Dec 2019 10:44:27 +0100 Subject: [PATCH] Remove vi_arg_digit and vi_delete_to They don't do anything anymore. --- src/input.cpp | 2 -- src/input_common.h | 2 -- src/reader.cpp | 7 ------- 3 files changed, 11 deletions(-) diff --git a/src/input.cpp b/src/input.cpp index 9eba49675..6aec246b3 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -121,8 +121,6 @@ static const input_function_metadata_t input_function_metadata[] = { {readline_cmd_t::upcase_word, L"upcase-word"}, {readline_cmd_t::downcase_word, L"downcase-word"}, {readline_cmd_t::capitalize_word, L"capitalize-word"}, - {readline_cmd_t::vi_arg_digit, L"vi-arg-digit"}, - {readline_cmd_t::vi_delete_to, L"vi-delete-to"}, {readline_cmd_t::execute, L"execute"}, {readline_cmd_t::beginning_of_buffer, L"beginning-of-buffer"}, {readline_cmd_t::end_of_buffer, L"end-of-buffer"}, diff --git a/src/input_common.h b/src/input_common.h index 9d3ecd6ca..f9182fd33 100644 --- a/src/input_common.h +++ b/src/input_common.h @@ -47,8 +47,6 @@ enum class readline_cmd_t { upcase_word, downcase_word, capitalize_word, - vi_arg_digit, - vi_delete_to, execute, beginning_of_buffer, end_of_buffer, diff --git a/src/reader.cpp b/src/reader.cpp index 38d33a0a3..a20163a99 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -1065,8 +1065,6 @@ static bool command_ends_paging(readline_cmd_t c, bool focused_on_search_field) case rl::upcase_word: case rl::downcase_word: case rl::capitalize_word: - case rl::vi_arg_digit: - case rl::vi_delete_to: case rl::beginning_of_buffer: case rl::end_of_buffer: // These commands operate on the search field if that's where the focus is. @@ -3192,11 +3190,6 @@ void reader_data_t::handle_readline_command(readline_cmd_t c, readline_loop_stat case rl::func_and: { DIE("self-insert should have been handled by inputter_t::readch"); } - case rl::vi_arg_digit: - case rl::vi_delete_to: { - // TODO: what needs to happen with these? - break; - } } }