diff options
author | Pranjal Kole <pranjal.kole7@gmail.com> | 2022-01-23 10:04:50 +0530 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2022-01-23 14:22:40 +0000 |
commit | 4fc78449ff6fe7042aadf0f9e3706adbb21066d3 (patch) | |
tree | 25d220050011345104a21cf22569e31bdc54d1e1 /docs/netsurf-gtk.1 | |
parent | 88d5ea866858506aae2ff2ecbdee2b4f960ab89f (diff) | |
download | netsurf-4fc78449ff6fe7042aadf0f9e3706adbb21066d3.tar.gz netsurf-4fc78449ff6fe7042aadf0f9e3706adbb21066d3.tar.bz2 |
textarea: always clear selection on NS_KEY_WORD_{LEFT,RIGHT}
This bug can be seen by selecting some text starting from the beginning
of a textarea (so that caret is 0) and then pressing the
NS_KEY_WORD_LEFT binding.
NS_KEY_WORD_LEFT was breaking early when caret was 0. So, to always
clear the selection, the clear selection code has been brought above the
break statement.
NS_KEY_WORD_RIGHT did not have such a break statement, so one has been
added for consistency, and because string operations are expensive.
Diffstat (limited to 'docs/netsurf-gtk.1')
0 files changed, 0 insertions, 0 deletions