Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Closes #79
  • Loading branch information
LunarWatcher committed May 29, 2023
1 parent 84c7208 commit 18fc5b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/autopairs/Strings.vim
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ endf
" returns [orig, close, text_after_close]
func! autopairs#Strings#matchbegin(text, close, ...)
let opt = get(a:, '1', {'regex': 0})
let m = matchstr(a:text, '^' .. (type(opt) == v:t_number ? a:open : autopairs#Utils#escape(a:close, opt)) .. '\v$')
let m = matchstr(a:text, '^' .. (type(opt) == v:t_number ? a:close : autopairs#Utils#escape(a:close, opt)) .. '\v$')
if m == ""
return []
end
Expand Down

0 comments on commit 18fc5b6

Please sign in to comment.