aviaryan / Clipjump

:clipboard: Clipboard Manager for Windows, built in AutoHotkey
http://clipjump.sourceforge.net/
381 stars 61 forks source link

After Move current Clip will Clip 0 of 0 #130

Open bstaint opened 8 years ago

bstaint commented 8 years ago

After Move current Clip when clicked cancel will Clip 0 of 0 screenshot: gif

I tried fixed it: function choosechannelgui:

return is_notcancel ? "" : channel_list

so Clipjump.ahk line 924:

            temp21 := choosechannelgui()
            if Instr(temp21, "-") != 1

The result in either case will call API.manageClip

patch:

diff -urN a/Clipjump/Clipjump.ahk b/Clipjump/Clipjump.ahk
--- a/Clipjump/Clipjump.ahk 2016-04-22 10:34:54.000000000 +0800
+++ b/Clipjump/Clipjump.ahk 2016-05-13 22:13:00.347143200 +0800
@@ -922,7 +922,7 @@
            Tooltip
            Critical, Off
            temp21 := choosechannelgui()
-           if Instr(temp21, "-") != 1
+           if temp21 And Instr(temp21, "-") != 1
            {
                API.manageClip( temp21 , empty, empty, ( ctrlref == "cut" ) ? 0 : 1 )
                PasteModeTooltip(TXT.TIP_done,1)