Commits

Tamas Kovacs committed 4e7922a

Do not remove EOL when deleting lines with paredit 'dd'

Comments (0)

Files changed (1)

plugin/paredit.vim

         if a:func == 'd'
             " Register "0 is corrupted by the above 'y' command
             call setreg( '0', save_0 ) 
-        endif
-        if a:visualmode && &selection == 'inclusive' && len(getline("'>")) < col("'>") && len(putreg) > 0
-            " Remove extra space added at the end of line when selection=inclusive
+        elseif a:visualmode && len(getline("'>")) < col("'>") && len(putreg) > 0
+            " Remove extra space added at the end of line when selection=inclusive, all, or onemore
             let putreg = putreg[:-2]
         endif