Commits

Tamas Kovacs committed 186fc35

Returning cursor to start position after paredit " wrap (by Logan Campbell)

  • Participants
  • Parent commits 11b8afb

Comments (0)

Files changed (1)

plugin/paredit.vim

   let escaped_keys = substitute(a:keys, '["<]', '\\\0', "g")
   execute a:map_type . ' <silent> <buffer> ' .
         \ a:keys . ' ' . a:command .
-        \ ':echom "' . escaped_keys '"<cr>' .
         \ ':silent! call repeat#set("' . escaped_keys . '")<CR>'
 endfunction
 
     call s:WrapSelection( a:open, a:close )
     if a:open != '"'
         normal! %
+    else
+      call cursor(line, column + 1)
     endif
     let &selection = sel_save
     let &iskeyword = isk_save