From f1a4bf82187836e93f7a650cf01e696dff7d45da Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Wed, 26 May 2021 17:52:01 -0400 Subject: [PATCH] Changed to multiline select. --- data/core/commands/doc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/core/commands/doc.lua b/data/core/commands/doc.lua index 938f9c59..9b5b0864 100644 --- a/data/core/commands/doc.lua +++ b/data/core/commands/doc.lua @@ -102,7 +102,7 @@ end -- and remove the appropriate amount of spaces (or a tab). local function indent_text(unindent) local text = get_indent_string() - local line1, col1, line2, col2, swap = doc():get_selection(true) + local line1, col1, line2, col2, swap = doc_multiline_selection(true) local _, se = doc().lines[line1]:find("^[ \t]+") local in_beginning_whitespace = col1 == 1 or (se and col1 <= se + 1) if unindent or doc():has_selection() or in_beginning_whitespace then