diff --git a/keysnail/.keysnail.js b/keysnail/.keysnail.js index 85961fb..969c37d 100644 --- a/keysnail/.keysnail.js +++ b/keysnail/.keysnail.js @@ -287,10 +287,10 @@ key.setEditKey('C-M-y', function (ev) { if (!command.kill.ring.length) return; - let (ct = command.getClipboardText()) { - (!command.kill.ring.length || ct != command.kill.ring[0]) && - command.pushKillRing(ct); - }; + let ct = command.getClipboardText(); + + if (!command.kill.ring.length || ct != command.kill.ring[0]) + command.pushKillRing(ct); prompt.selector( {