From 92bf8d4488d50e31b32d593ca78973b557cc8df7 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 17 Mar 2020 15:08:26 -0400 Subject: Align block comments by column if possible, not indent. --- test/test.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test') diff --git a/test/test.lua b/test/test.lua index 6ba7c9d2..a584cacc 100644 --- a/test/test.lua +++ b/test/test.lua @@ -1413,7 +1413,7 @@ function test_editing_block_comment_lines() assert_equal(buffer:get_text(), table.concat({ '', '--local foo = "bar"', - ' --local baz = "quux"', + '-- local baz = "quux"', '' }, '\n')) assert_equal(buffer.selection_start, buffer:position_from_line(LINE(2)) + offset + 2) @@ -1438,16 +1438,16 @@ function test_editing_block_comment() buffer:set_lexer('ansi_c') buffer:set_text(table.concat({ '', - 'const char *foo = "bar";', - ' const char *baz = "quux";', + ' const char *foo = "bar";', + 'const char *baz = "quux";', '' }, '\n')) buffer:set_sel(buffer:position_from_line(LINE(2)), buffer:position_from_line(LINE(4))) textadept.editing.block_comment() assert_equal(buffer:get_text(), table.concat({ '', - '/*const char *foo = "bar";*/', - ' /*const char *baz = "quux";*/', + ' /*const char *foo = "bar";*/', + '/*const char *baz = "quux";*/', '' }, '\n')) assert_equal(buffer.selection_start, buffer:position_from_line(LINE(2)) + 2) @@ -1455,8 +1455,8 @@ function test_editing_block_comment() textadept.editing.block_comment() -- uncomment assert_equal(buffer:get_text(), table.concat({ '', - 'const char *foo = "bar";', - ' const char *baz = "quux";', + ' const char *foo = "bar";', + 'const char *baz = "quux";', '' }, '\n')) assert_equal(buffer.selection_start, buffer:position_from_line(LINE(2))) -- cgit v1.2.3