aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/test.rs
diff options
context:
space:
mode:
authorMichael Davis2022-11-21 02:49:44 +0000
committerGitHub2022-11-21 02:49:44 +0000
commitbbde897ac39991620a9b6e9e5c742ab3b97b1fbe (patch)
treed34c2ccb93127f0bafbf49679535ec3d6a621aac /helix-core/src/test.rs
parent2f9ca3840a478fc58f411b6a4bc67019829ff72f (diff)
Select new pasted text in normal mode only (#4824)
d6323b7cbc21a9d3ba29738c76581dad93f9f415 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.
Diffstat (limited to 'helix-core/src/test.rs')
0 files changed, 0 insertions, 0 deletions