diff options
Diffstat (limited to 'runtime/lua/vim/text.lua')
| -rw-r--r-- | runtime/lua/vim/text.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/text.lua b/runtime/lua/vim/text.lua index ba038bacf8..3bdb058e30 100644 --- a/runtime/lua/vim/text.lua +++ b/runtime/lua/vim/text.lua @@ -190,7 +190,7 @@ function M.indent(size, text, opts) old_indent = old_indent or 0 prefix = prefix and prefix or ' ' - if old_indent == size then + if not opts.expandtab and old_indent == size then -- Optimization: if the indent is the same, return the text unchanged. return text, old_indent end |