[dev] [st] Scroll selection patch

From: Rafa Garcia Gallego <rafael.garcia.gallego_AT_gmail.com>
Date: Wed, 14 Sep 2011 16:34:53 +0200


One thing from st that bugs me a little: whenever I select some text
with the mouse it remains marked even if I type in the same line and
change its content. The same happens if I keep typing and the window
scrolls, since the selection box does not scroll along with it. In
either case, a new piece of text seems to be selected, but this "new
selection" is of course not copied to the clipboard, which feels

This patch solves this problem with a behavior akin to that of
xterm/urxvt: scrolling the selection box with the screen and hiding it
if you type in its line or clear the screen.


PS: I tried looking both at xterm and urxvt source for a minute;
almost ripped my eyes off

Received on Wed Sep 14 2011 - 16:34:53 CEST

This archive was generated by hypermail 2.2.0 : Wed Sep 14 2011 - 16:36:03 CEST