Skip to content

Commit

Permalink
support \r in line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Jan 23, 2024
1 parent 50eb00e commit 8839215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/dialog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ end
local function clipboard_cb(clipboard)
mp.osd_message('clipboard: ' .. clipboard)
local i = 1
for line in string.gmatch(clipboard, '[^\n]+') do
for line in string.gmatch(clipboard, '[^\r\n]+') do
open_file(i, line, open_action)
i = i + 1
end
Expand Down

0 comments on commit 8839215

Please sign in to comment.