More word selection direction change fixes

This commit is contained in:
Kovid Goyal 2021-09-27 20:42:22 +05:30
parent c71d8fe1cc
commit 7d41aca0e4
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 32 additions and 3 deletions

View file

@ -169,6 +169,23 @@ class TestMouse(BaseTest):
move(x=4.4, y=1)
self.ae(sel(), 'gh')
release()
multi_click(x=4.4)
self.ae(sel(), 'cd')
move()
self.ae(sel(), 'ab cd')
move(x=1, y=1)
self.ae(sel(), 'ab cd f')
move()
self.ae(sel(), 'ab cd')
release()
multi_click(x=1.4)
self.ae(sel(), 'ab')
move(x=4.4)
self.ae(sel(), 'ab cd')
move(x=4.4, y=1)
self.ae(sel(), 'ab cd f gh')
move(x=4.4)
self.ae(sel(), 'ab cd')
# Line select with drag
s.reset()