mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
Fix alt-e cursor position restore on Vim <= 8 (#10946)
This commit is contained in:
parent
0b52b72ebc
commit
94dfe1b053
1 changed files with 1 additions and 4 deletions
|
@ -54,10 +54,7 @@ function edit_command_buffer --description 'Edit the command buffer in an extern
|
|||
end
|
||||
set cursor_from_editor (mktemp)
|
||||
set -a editor +$line "+norm! $col|" $f \
|
||||
'+autocmd VimLeave * ++once call writefile(
|
||||
[printf("%s %s %s", shellescape(bufname()), line("."), col("."))],
|
||||
"'$cursor_from_editor'"
|
||||
)'
|
||||
'+au VimLeave * ++once call writefile([printf("%s %s %s", shellescape(bufname()), line("."), col("."))], "'$cursor_from_editor'")'
|
||||
case emacs emacsclient gedit
|
||||
set -a editor +$line:$col $f
|
||||
case kak
|
||||
|
|
Loading…
Reference in a new issue