diff options
author | 2020-03-17 15:08:26 -0400 | |
---|---|---|
committer | 2020-03-17 15:08:26 -0400 | |
commit | 92bf8d4488d50e31b32d593ca78973b557cc8df7 (patch) | |
tree | 26dd12465821ddae77f0e7d06918010d98f06d5b /test/test.lua | |
parent | 573c184b20dac1e8d5d5b659a04a2ea9744d6352 (diff) | |
download | textadept-92bf8d4488d50e31b32d593ca78973b557cc8df7.tar.gz textadept-92bf8d4488d50e31b32d593ca78973b557cc8df7.zip |
Align block comments by column if possible, not indent.
Diffstat (limited to 'test/test.lua')
-rw-r--r-- | test/test.lua | 14 |
1 files changed, 7 insertions, 7 deletions
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))) |