Skip to content

Commit

Permalink
Merge pull request #46 from zeertzjq/patch-1
Browse files Browse the repository at this point in the history
Strip all suda:// prefixes
  • Loading branch information
lambdalisue authored Sep 1, 2021
2 parents bfafa27 + 7108ae1 commit 0290c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/suda.vim
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function! s:escape_patterns(expr) abort
endfunction

function! s:strip_prefix(expr) abort
return substitute(a:expr, '^suda://', '', '')
return substitute(a:expr, '\v^(suda://)+', '', '')
endfunction

function! s:echomsg_exception() abort
Expand Down

0 comments on commit 0290c93

Please sign in to comment.