aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-08-16 21:48:51 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2015-08-16 21:48:51 -0400
commitda355472e0f8ad35b84a18e0ca9e43522b8a766b (patch)
tree5222502d655fee55a7d773025c90656753ca6e9c
parentaf6f89d3e8fd8b6ffd26ecd583b7a278c8d86a15 (diff)
downloadtextadept-da355472e0f8ad35b84a18e0ca9e43522b8a766b.tar.gz
textadept-da355472e0f8ad35b84a18e0ca9e43522b8a766b.zip
Block comment should respect indentation; modules/textadept/editing.lua
-rw-r--r--modules/textadept/editing.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua
index 55272e8c..62804043 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -281,7 +281,7 @@ function M.block_comment()
anchor, pos = buffer.line_end_position[s] - anchor, buffer.length - pos
buffer:begin_undo_action()
for line = s, not ignore_last_line and e or e - 1 do
- local p = buffer:position_from_line(line)
+ local p = buffer.line_indent_position[line]
if buffer:text_range(p, p + #prefix) == prefix then
buffer:delete_range(p, #prefix)
if suffix ~= '' then