mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Rename replace-one to replace_one
Fixes invalid character in variable name $fish_cursor_replace-one (used by fish_vi_cursor[_handle]) by renaming bind mode 'replace-one' to 'replace_one'.
This commit is contained in:
parent
e7d686461e
commit
a9db99ac52
3 changed files with 6 additions and 6 deletions
|
@ -9,7 +9,7 @@ function fish_default_mode_prompt --description "Display the default mode for th
|
||||||
case insert
|
case insert
|
||||||
set_color --bold --background green white
|
set_color --bold --background green white
|
||||||
echo '[I]'
|
echo '[I]'
|
||||||
case replace-one
|
case replace_one
|
||||||
set_color --bold --background green white
|
set_color --bold --background green white
|
||||||
echo '[R]'
|
echo '[R]'
|
||||||
case visual
|
case visual
|
||||||
|
|
|
@ -207,11 +207,11 @@ function fish_vi_key_bindings --description 'vi-like key bindings for fish'
|
||||||
bind '"*P' backward-char "commandline -i ( xsel -p; echo )[1]"
|
bind '"*P' backward-char "commandline -i ( xsel -p; echo )[1]"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Lowercase r, enters replace-one mode
|
# Lowercase r, enters replace_one mode
|
||||||
#
|
#
|
||||||
bind -m replace-one r force-repaint
|
bind -m replace_one r force-repaint
|
||||||
bind -M replace-one -m default '' delete-char self-insert backward-char force-repaint
|
bind -M replace_one -m default '' delete-char self-insert backward-char force-repaint
|
||||||
bind -M replace-one -m default \e cancel force-repaint
|
bind -M replace_one -m default \e cancel force-repaint
|
||||||
|
|
||||||
#
|
#
|
||||||
# visual mode
|
# visual mode
|
||||||
|
|
|
@ -157,7 +157,7 @@ expect_prompt -re {\r\nTENT\r\n} {
|
||||||
|
|
||||||
# Now test that exactly the expected bind modes are defined
|
# Now test that exactly the expected bind modes are defined
|
||||||
send "bind --list-modes\r"
|
send "bind --list-modes\r"
|
||||||
expect_prompt -re {\r\ndefault\r\ninsert\r\npaste\r\nreplace-one\r\nvisual\r\n} {
|
expect_prompt -re {\r\ndefault\r\ninsert\r\npaste\r\nreplaceone\r\nvisual\r\n} {
|
||||||
puts "vi bind modes"
|
puts "vi bind modes"
|
||||||
} unmatched {
|
} unmatched {
|
||||||
puts stderr "Unexpected vi bind modes"
|
puts stderr "Unexpected vi bind modes"
|
||||||
|
|
Loading…
Reference in a new issue