diff options
author | 2012-10-02 16:34:00 -0400 | |
---|---|---|
committer | 2012-10-02 16:34:00 -0400 | |
commit | 0abd95dbaf5a9970170cf237cc141f2bb4031abb (patch) | |
tree | 36219156a72350ada1a9f8b4d8a8dd1482cad620 | |
parent | 87ff65629f9f02c338ae04dc988e2b5f2c480e2d (diff) | |
download | textadept-0abd95dbaf5a9970170cf237cc141f2bb4031abb.tar.gz textadept-0abd95dbaf5a9970170cf237cc141f2bb4031abb.zip |
Fixed bug introduced by r1260; modules/textadept/snippets.lua
-rw-r--r-- | modules/textadept/snippets.lua | 2 |
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 |