Make pasting multiple lines from clipboard same way as a single line

This commit is contained in:
Jipok 2021-12-10 19:25:28 +05:00
parent 4a563ddea1
commit 6a135f7c06
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ local commands = {
whole_line = core.cursor_clipboard_whole_line[idx] == true
else
value = clipboard
whole_line = clipboard:find("\n") ~= nil
whole_line = false
end
if whole_line then
doc():insert(line1, 1, value:gsub("\r", ""))