tsm: screen: fix including final character in selection
authorDavid Herrmann <dh.herrmann@googlemail.com>
Fri, 5 Oct 2012 11:55:29 +0000 (13:55 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Fri, 5 Oct 2012 11:55:29 +0000 (13:55 +0200)
commit47d6bb74178f446e1bc152816b1f55cbf8912c92
tree02eb36be3952ec989611a6a4d12c7f5924504dac
parent83d36af4a174b6053afa269a7e456528355e76cf
tsm: screen: fix including final character in selection

We need to draw the final character of a selection with inversed
background, too. This is a bit tricky as the selection may be inversed
itself. Therefore, we just keep a flag that tells us whether the previous
character was selected and just draw the new character also selected.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/tsm_screen.c