zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: keep region active when widget fails
@ 2014-11-06 23:48 Oliver Kiddle
  2014-11-07  0:37 ` Bart Schaefer
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Oliver Kiddle @ 2014-11-06 23:48 UTC (permalink / raw)
  To: Zsh workers

Does anyone know why we set region_active to false in handlefeep()? I
would guess that there are perhaps cases where we want this but things
like cursor left when you're already in the first position shouldn't
unset region_active. Any objections to the following patch? We can
always add the assignment to individual widgets if we find cases where
it is desirable.

Oliver

diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c
index e95a34b..03a2bdc 100644
--- a/Src/Zle/zle_utils.c
+++ b/Src/Zle/zle_utils.c
@@ -1365,7 +1365,6 @@ int
 handlefeep(UNUSED(char **args))
 {
     zbeep();
-    region_active = 0;
     return 0;
 }
 


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-11-07 10:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-06 23:48 PATCH: keep region active when widget fails Oliver Kiddle
2014-11-07  0:37 ` Bart Schaefer
2014-11-07  9:04 ` PATCH: Add an option to disable deactivating region hilighting whenever you edit something Mikael Magnusson
2014-11-07 10:15   ` Oliver Kiddle
2014-11-07 10:42     ` Mikael Magnusson
2014-11-07  9:36 ` PATCH: keep region active when widget fails Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).