diff options
Diffstat (limited to 'modules/textadept/editing.lua')
-rw-r--r-- | modules/textadept/editing.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua index 6a30d04f..cbf52621 100644 --- a/modules/textadept/editing.lua +++ b/modules/textadept/editing.lua @@ -242,7 +242,7 @@ function M.paste() end -- Strip leading indentation from clipboard text. local text = ui.clipboard_text - local lead = text:match('^%s*') + local lead = text:match('^[ \t]*') if lead ~= '' then text = text:sub(#lead + 1):gsub('\n'..lead, '\n') end -- Change indentation to match buffer indentation settings. local tab_width = math.huge |