aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/quote.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-29 11:08:40 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-29 11:08:40 +1200
commit197bd52242010b7060b132456757ace5294775f2 (patch)
treeb50fa3b3b38bad218448a31fc4d1b18106d91495 /vim/autoload/quote.vim
parentMerge branch 'release/v1.62.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-1.63.0.tar.gz (sig)
dotfiles-1.63.0.zip
Merge branch 'release/v1.63.0'v1.63.0
* release/v1.63.0: Bump VERSION Add mapping to contract multiple blank lines Convert a few stridx() to alternative forms
Diffstat (limited to 'vim/autoload/quote.vim')
-rw-r--r--vim/autoload/quote.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/autoload/quote.vim b/vim/autoload/quote.vim
index 35df76a4..2343b12a 100644
--- a/vim/autoload/quote.vim
+++ b/vim/autoload/quote.vim
@@ -27,7 +27,7 @@ function! quote#QuoteOpfunc(type) abort
" Only add a space after the quote character if this line isn't already
" quoted with the same character
- let l:new = stridx(l:cur, l:char) == 0
+ let l:new = l:cur[0] == l:char
\ ? l:char.l:cur
\ : l:char.' '.l:cur
call setline(l:li, l:new)