mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 22:14:49 +08:00
Rename insert_line_above to insert_line_over
This is for symmetry with insert_line_under. See #7442.
This commit is contained in:
parent
2d2efc8b2e
commit
90f4c458e5
|
@ -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
|
||||
|
|
|
@ -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"},
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user