Commit: fd4d225ee0938ccbad2600123e383ef99997cc56
Parent: cd4485daeebaa8e1100ccb3265a8db0bf900e2f1
Author: Ren Tatsumoto
Date: Sat, 23 Jan 2021 05:09:54 +0000
Merge pull request #20
Escape ampersand char for Windows
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/subs2srs.lua b/subs2srs.lua
@@ -612,6 +612,7 @@ local function init_platform_windows()
end
self.copy_to_clipboard = function(text)
+ text = text:gsub("&", "^^^&")
mp.commandv("run", "cmd.exe", "/d", "/c", string.format("@echo off & chcp 65001 & echo %s|clip", text))
end