Skip to content

Commit

Permalink
Prevent auto-closing if cursor is before a quote
Browse files Browse the repository at this point in the history
  • Loading branch information
tmsvg committed Jan 27, 2019
1 parent adfbcd0 commit cb1185d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autoload/pear_tree/insert_mode.vim
Expand Up @@ -134,6 +134,8 @@ function! s:ShouldCloseSimpleOpener(char) abort
let l:pair = pear_tree#GetSurroundingPair()
if l:pair == []
return 0
elseif l:pair[0] ==# l:pair[1]
return 0
elseif l:is_dumb
let [l:lnum, l:col] = pear_tree#cursor#Position()
return [l:lnum, l:col - 2] == l:pair[3]
Expand Down

0 comments on commit cb1185d

Please sign in to comment.