summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbreadcat2018-11-15 13:20:47 +0000
committerbreadcat2018-11-15 13:20:47 +0000
commit8d37be097ded0204f5003868196d00f1598c0d45 (patch)
treefbd3e796bc00ec8cabafe5528452da552c819124
parent992856c9db2d9a9d29c8f11068066882e85f0ef3 (diff)
downloadahka-8d37be097ded0204f5003868196d00f1598c0d45.tar.gz
ahka-8d37be097ded0204f5003868196d00f1598c0d45.tar.bz2
ahka-8d37be097ded0204f5003868196d00f1598c0d45.zip
Add slash character replacement
-rw-r--r--ahk-assistant.ahk1
1 files changed, 1 insertions, 0 deletions
diff --git a/ahk-assistant.ahk b/ahk-assistant.ahk
index fdf9ba6..24c39eb 100644
--- a/ahk-assistant.ahk
+++ b/ahk-assistant.ahk
@@ -600,6 +600,7 @@ pasteClipboard() { ; manually paste clipboard, minus most formatting
StringReplace, clipboard, clipboard, ·,, All ; remove middots
StringReplace, clipboard, clipboard, %A_Tab%,, All ; remove tabs
StringReplace, clipboard, clipboard, `r,, All ; remove half of line breaks
+ StringReplace, clipboard, clipboard, /,%A_Space%, All ; forward slashes mess up linux paths
StringReplace, clipboard, clipboard, `n,, All ; remove other half of line breaks
clipboard = %clipboard% ; trim whitespace
SendRaw %clipboard%