aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2012-10-02 16:34:00 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2012-10-02 16:34:00 -0400
commit0abd95dbaf5a9970170cf237cc141f2bb4031abb (patch)
tree36219156a72350ada1a9f8b4d8a8dd1482cad620 /modules/textadept
parent87ff65629f9f02c338ae04dc988e2b5f2c480e2d (diff)
downloadtextadept-0abd95dbaf5a9970170cf237cc141f2bb4031abb.tar.gz
textadept-0abd95dbaf5a9970170cf237cc141f2bb4031abb.zip
Fixed bug introduced by r1260; modules/textadept/snippets.lua
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/snippets.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua
index 254eb9de..6dd9fdb2 100644
--- a/modules/textadept/snippets.lua
+++ b/modules/textadept/snippets.lua
@@ -111,7 +111,7 @@ local function new_snippet(text, trigger)
if #lines > 1 then
-- Match indentation on all lines after the first.
local indent_size = #buffer:get_cur_line():match('^%s*')
- if not use_tabs then indent_size = indent_size / buffer.indent end
+ if not use_tabs then indent_size = indent_size / buffer.tab_width end
local additional_indent = indent[use_tabs]:rep(indent_size)
for i = 2, #lines do lines[i] = additional_indent..lines[i] end
end