diff --git a/share/functions/fish_vi_key_bindings.fish b/share/functions/fish_vi_key_bindings.fish index 9224f2283..3dfc6dbca 100644 --- a/share/functions/fish_vi_key_bindings.fish +++ b/share/functions/fish_vi_key_bindings.fish @@ -81,7 +81,7 @@ function fish_vi_key_bindings --description 'vi-like key bindings for fish' bind -s --preset -m insert \n execute bind -s --preset -m insert \r execute bind -s --preset -m insert o insert-line-under repaint-mode - bind -s --preset -m insert O insert-line-above repaint-mode + bind -s --preset -m insert O insert-line-over repaint-mode bind -s --preset -m insert i repaint-mode bind -s --preset -m insert I beginning-of-line repaint-mode bind -s --preset -m insert a forward-single-char repaint-mode diff --git a/src/input.cpp b/src/input.cpp index 8bfb1452c..bcac349c5 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -141,7 +141,7 @@ static const input_function_metadata_t input_function_metadata[] = { {readline_cmd_t::end_selection, L"end-selection"}, {readline_cmd_t::kill_selection, L"kill-selection"}, {readline_cmd_t::insert_line_under, L"insert-line-under"}, - {readline_cmd_t::insert_line_above, L"insert-line-above"}, + {readline_cmd_t::insert_line_over, L"insert-line-over"}, {readline_cmd_t::forward_jump, L"forward-jump"}, {readline_cmd_t::backward_jump, L"backward-jump"}, {readline_cmd_t::forward_jump_till, L"forward-jump-till"}, diff --git a/src/input_common.h b/src/input_common.h index 5dbd336b5..99c5041c9 100644 --- a/src/input_common.h +++ b/src/input_common.h @@ -66,7 +66,7 @@ enum class readline_cmd_t { end_selection, kill_selection, insert_line_under, - insert_line_above, + insert_line_over, forward_jump, backward_jump, forward_jump_till, diff --git a/src/reader.cpp b/src/reader.cpp index 4a37bce48..2bd5836dd 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -3590,7 +3590,7 @@ void reader_data_t::handle_readline_command(readline_cmd_t c, readline_loop_stat } break; } - case rl::insert_line_above: { + case rl::insert_line_over: { editable_line_t *el = active_edit_line(); while (el->position() > 0 && el->text().at(el->position() - 1) != L'\n') { update_buff_pos(el, el->position() - 1);