1. Tamas Kovacs
  2. slimv

Commits

Tamas Kovacs  committed 0fa9c22

Paredit: keep cursor inside "" when deleting over trailing " via 'cW', 'C', etc.

  • Participants
  • Parent commits 31a8f80
  • Branches default

Comments (0)

Files changed (1)

File plugin/paredit.vim

View file
  • Ignore whitespace
             endif
             if a:func == 'd'
                 let offs = offs - 1
+            elseif instring && matched == '"'
+                " Keep cursor inside the double quotes
+                let offs = offs + 1
             endif
             if offs > 0
                 silent exe "normal! " . string(offs) . "h"