mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 03:54:04 +08:00
yank_POP -> yank_pop
This commit is contained in:
parent
5f64972908
commit
3f7bc7232e
|
@ -97,7 +97,7 @@ static const input_function_metadata_t input_function_metadata[] = {
|
|||
{readline_cmd_t::backward_delete_char, L"backward-delete-char"},
|
||||
{readline_cmd_t::kill_line, L"kill-line"},
|
||||
{readline_cmd_t::yank, L"yank"},
|
||||
{readline_cmd_t::yank_POP, L"yank-pop"},
|
||||
{readline_cmd_t::yank_pop, L"yank-pop"},
|
||||
{readline_cmd_t::complete, L"complete"},
|
||||
{readline_cmd_t::complete_and_search, L"complete-and-search"},
|
||||
{readline_cmd_t::pager_toggle_search, L"pager-toggle-search"},
|
||||
|
|
|
@ -23,7 +23,7 @@ enum class readline_cmd_t {
|
|||
backward_delete_char,
|
||||
kill_line,
|
||||
yank,
|
||||
yank_POP,
|
||||
yank_pop,
|
||||
complete,
|
||||
complete_and_search,
|
||||
pager_toggle_search,
|
||||
|
|
|
@ -1040,7 +1040,7 @@ static bool command_ends_paging(readline_cmd_t c, bool focused_on_search_field)
|
|||
case rl::backward_delete_char:
|
||||
case rl::kill_line:
|
||||
case rl::yank:
|
||||
case rl::yank_POP:
|
||||
case rl::yank_pop:
|
||||
case rl::backward_kill_line:
|
||||
case rl::kill_whole_line:
|
||||
case rl::kill_word:
|
||||
|
@ -2650,7 +2650,7 @@ void reader_data_t::handle_readline_command(readline_cmd_t c, readline_loop_stat
|
|||
rls.yank_len = yank_str.size();
|
||||
break;
|
||||
}
|
||||
case rl::yank_POP: {
|
||||
case rl::yank_pop: {
|
||||
if (rls.yank_len) {
|
||||
for (size_t i = 0; i < rls.yank_len; i++) remove_backward();
|
||||
|
||||
|
@ -3231,7 +3231,7 @@ maybe_t<wcstring> reader_data_t::readline(int nchars_or_0) {
|
|||
assert((event_needing_handling->is_char() || event_needing_handling->is_readline()) &&
|
||||
"Should have a char or readline");
|
||||
|
||||
if (rls.last_cmd != rl::yank && rls.last_cmd != rl::yank_POP) {
|
||||
if (rls.last_cmd != rl::yank && rls.last_cmd != rl::yank_pop) {
|
||||
rls.yank_len = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user