Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select new pasted text in normal mode only #4824

Merged
merged 1 commit into from
Nov 21, 2022

Commits on Nov 20, 2022

  1. Select new pasted text in normal mode only

    d6323b7 changed the behavior of paste
    to select the newly inserted text. This is preferrable in normal mode
    because it's useful to be able to act on the new text. This behavior
    is worse for insert or select mode though:
    
    * In insert mode, the cursor ends up on the last character of the newly
      selected text, so further typing inserts text before the last
      character.
    * In select mode, the current selection is replaced with the new text
      selection which doesn't extend the current selection. With this
      change, the selection is extended to include the new text.
    
    This aligns the behavior more closely with Kakoune, but it's
    coincidental instead of intentional: Kakoune doesn't implement
    bracketed paste (AFAIK) which causes this behavior in insert mode,
    and Kakoune doesn't have a select mode.
    the-mikedavis committed Nov 20, 2022
    Configuration menu
    Copy the full SHA
    739ae14 View commit details
    Browse the repository at this point in the history