]> Sergey Matveev's repositories - st.git/commit
Check alternative screen before drawing box selection
authorRoberto E. Vargas Caballero <k0ga@shike2.com>
Tue, 4 Sep 2012 18:33:01 +0000 (20:33 +0200)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Tue, 4 Sep 2012 18:33:01 +0000 (20:33 +0200)
commitec8262e106d476ba11cb82b2e4df77a38eed1abd
tree42ffa76c6d9c2d6442baed96e00f2020f17947b7
parent684a6b59eee2c5dd6a58a003245e37dcaf520ff4
Check alternative screen before drawing box selection
Some programs use the alternative screen (vi, less, ...), whose
content is different of the main screen. If you select text in one of
the screen, you don't wait the box selection is painted in the other
screen, so it is necessary check if the selection was done in the same
screen we are going to paint. Before to this commit, you could do
something like:

$ LESS="" ls | less
(select some code)
q

and selection box remains drawing in the main screen, but the content
of selection keeps text of the alternate screen.
---
 st.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
st.c