Merge remote-tracking branch 'origin/master'

This commit is contained in:
Francesco Abbate
2020-11-17 10:28:20 +01:00
7 changed files with 102 additions and 13 deletions
+4
View File
@@ -26,6 +26,10 @@ end
local function insert_at_start_of_selected_lines(text, skip_empty)
local line1, col1, line2, col2, swap = doc():get_selection(true)
if line2 > line1 and col2 == 1 then
line2 = line2 - 1
col2 = #doc().lines[line2]
end
for line = line1, line2 do
local line_text = doc().lines[line]
if (not skip_empty or line_text:find("%S")) then