diff options
author | noname <noname@inventati.org> | 2015-05-03 19:28:10 +0000 |
---|---|---|
committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2015-05-04 12:06:43 +0200 |
commit | c990abfedf56cb8d3176fe6d5152ff65bb68bff0 (patch) | |
tree | bccbfccd50700d31c72501c9652c080c7aa190ed /LEGACY | |
parent | 3cb7f27afe89c33c74b51c5460b7fb16413f786b (diff) | |
download | st-c990abfedf56cb8d3176fe6d5152ff65bb68bff0.tar.gz st-c990abfedf56cb8d3176fe6d5152ff65bb68bff0.tar.bz2 st-c990abfedf56cb8d3176fe6d5152ff65bb68bff0.zip |
Fix empty selection highlighting bug.
When user clicks LMB, one character is selected, but will not be copied
to selection until the user moves cursor a bit. Therefore, the character
should not be highlighted as selected yet.
Before the patch, the trick was not to mark line as dirty to avoid
highlighting it. However, if user has already selected something and
clicks in line that contains selection, selclear sets the line as dirty
and one character is highlighted when it should not.
This patch replaces dirty trick with explicit check for sel.mode inside
selected().
Diffstat (limited to 'LEGACY')
0 files changed, 0 insertions, 0 deletions