From 83bb90540ac0e6a15e4d7248499735eea92ea26d Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 8 Feb 2016 01:06:40 +0100 Subject: [PATCH] Fix keysnail init syntax --- keysnail/.keysnail.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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( {