Skip to content

Commit

Permalink
paredit_doublequote skips on end quote
Browse files Browse the repository at this point in the history
Fixes #22
  • Loading branch information
odyssomay committed Jan 30, 2014
1 parent ecb8362 commit 54f0c14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion insertion.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ def f(region):
e = region.end()

if s == e:
if shared.is_inside_string(view, s):
if view.substr(s) == "\"":
return s + 1
elif shared.is_inside_string(view, s):
view.insert(edit, s, "\\\"")
return s + 2
else:
Expand Down

0 comments on commit 54f0c14

Please sign in to comment.