guns / vim-sexp

Precision Editing for S-expressions
MIT License
612 stars 33 forks source link

Do not move cursor with emit or capture #12

Open snoe opened 9 years ago

snoe commented 9 years ago

PR for half of #10.

This change maintains cursor position if a bracket happens to move the current character.

It also maintains cursor position from undos after capture or emit except for something I was unable to solve: capture-head on a top level form and undoing will move the cursor to the head of the list.

Cheers

elmehalawi commented 2 years ago

Is there any chance of this being merged? This is a huge improvement to the default behavior.