commit | 9c5cd6c32a5aec818ce3656b4927f8761890b250 | [log] [tgz] |
---|---|---|
author | Florian Thienel <florian@thienel.org> | Tue Jun 30 23:07:39 2015 +0200 |
committer | Florian Thienel <florian@thienel.org> | Tue Jun 30 23:07:39 2015 +0200 |
tree | ed7825572c66c963c0bfcaef934c96f73c228807 | |
parent | 77f968564d935cc4d6b38afc014860c9b1e15466 [diff] |
balanced selecting with the mouse must be handled differently The mouse sets the end offset of the selection absolutely. Balancing only depends on the mark and the end offset. In contrast using the cursor keys moves the end offset of the selection relative to the caret offset. Therefor we must take the direction of movement into account in order to extend/reduce the balanced range correctly. Signed-off-by: Florian Thienel <florian@thienel.org>