1. Frank Fischer
  2. evil
  3. Issues
Issue #307 resolved

evil-execute-in-emacs-state from visual state eliminates region

epich
created an issue

Highlight text with v. Type \ to execute in emacs-state. The highlighted region disappears. When I finish executing whatever in emacs-state, I'm back in visual state but the mark end of the region is at point instead of where it was prior.

Expected that I could execute a command in emacs-state with the region intact. Afterall, a user might want the region to be input to the command executed in emacs-state.

Comments (2)

  1. Frank Fischer repo owner

    Keep region when executing emacs-state command from visual state (fix #307).

    We set the region to match the visual selection (when appropriate, i.e. for char and line visual state). When the Emacs command has finished and the region remains active, Evil returns to visual state, otherwise it exits visual state immediately.

    → <<cset 2b53028eea41>>

  2. Frank Fischer repo owner

    Keep region when executing emacs-state command from visual state (fix #307).

    We set the region to match the visual selection (when appropriate, i.e. for char and line visual state). When the Emacs command has finished and the region remains active, Evil returns to visual state, otherwise it exits visual state immediately.

    → <<cset 2b53028eea41>>

  3. Log in to comment