Skip to content
Myr

[vim] Fix escape of backslash in s:shortpath

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Close #1000

authored by Jan Edmund Lazo · committed by Junegunn Choi · parent 8db3345 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:plugin/fzf.vim+1 added-1 removed
754 unmodified lines
755756function! s:shortpath()757 let short = pathshorten(fnamemodify(getcwd(), ':~:.'))758 let slash = (s:is_win && !&shellslash) ? '\' : '/'759 return empty(short) ? '~'.slash : short . (short =~ slash.'$' ? '' : slash)759 return empty(short) ? '~'.slash : short . (short =~ escape(slash, '\').'$' ? '' : slash)760endfunction761762function! s:cmd(bang, ...) abort763 let args = copy(a:000)
19 unmodified lines