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

REPL: fix yank-twice activates region #33814

Merged
merged 1 commit into from
Nov 16, 2019
Merged

Conversation

rfourquet
Copy link
Member

Yanking twice was fooling setmark into believing
that ^Space, the keybinding for setmark, had
been pressed twice, leading to activating the region.
So let's make setmark behave as a "command" (and
activate the region) only when called directly by
the user, otherwise treat it as a low-level function.

@rfourquet rfourquet added REPL Julia's REPL (Read Eval Print Loop) bugfix This change fixes an existing bug labels Nov 11, 2019
@rfourquet rfourquet closed this Nov 14, 2019
@rfourquet rfourquet reopened this Nov 14, 2019
Yanking twice was fooling `setmark` into believing
that `^Space`, the keybinding for `setmark`, had
been pressed twice, leading to activating the region.
So let's make `setmark` behave as a "command" (and
activate the region) only when called directly by
the user, otherwise treat it as a low-level function.
@rfourquet rfourquet merged commit 4982b36 into master Nov 16, 2019
@rfourquet rfourquet deleted the rf/repl/fix-yank-activate branch November 16, 2019 10:10
KristofferC pushed a commit that referenced this pull request Apr 11, 2020
Yanking twice was fooling `setmark` into believing
that `^Space`, the keybinding for `setmark`, had
been pressed twice, leading to activating the region.
So let's make `setmark` behave as a "command" (and
activate the region) only when called directly by
the user, otherwise treat it as a low-level function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant