aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2021-06-12 11:26:54 -0400
committerGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2021-06-12 11:26:54 -0400
commit3ce1997b68b0454840870e35d84a4bb5feddfab3 (patch)
treef849a2d0ef73ed8666c1d61d5ab4a7137e80b473 /test/test.lua
parentc48b2e6ff5fdad2e7815972fb4d5d07d5de295af (diff)
Fixed incorrect bitwise operation.
This consolidates changes from r3135 and r3149 and fixes an additional restore selection case.
Diffstat (limited to 'test/test.lua')
-rw-r--r--test/test.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test.lua b/test/test.lua
index 05084c20..54419eb9 100644
--- a/test/test.lua
+++ b/test/test.lua
@@ -2144,7 +2144,7 @@ function test_editing_filter_through()
textadept.editing.filter_through('sort')
assert_equal(buffer:get_text(), '3|baz\n1|foo\n1|foo\n4|quux\n5|foobar\n2|bar\n')
buffer:undo()
- -- Test multiple selection.
+ -- Test rectangular selection.
buffer:set_text('987654321\n123456789\n')
buffer.rectangular_selection_anchor = 4
buffer.rectangular_selection_caret = 17
@@ -2154,8 +2154,9 @@ function test_editing_filter_through()
assert_equal(buffer.rectangular_selection_caret, 17)
buffer:undo()
assert_equal(buffer:get_text(), '987654321\n123456789\n')
- -- Test rectangular selection.
+ -- Test multiple selection.
buffer:set_text('foo\n\tfoo\n\t\tfoo\nfoo')
+ buffer:goto_pos(1)
textadept.editing.select_word()
textadept.editing.select_word()
textadept.editing.select_word()