From 2c486edee74ec4997b194a5bf9b837f2697458cb Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 15 May 2009 00:29:50 +1000 Subject: [PATCH] Fix conditional in editor.executeCommandWithMotion. --- common/content/editor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/content/editor.js b/common/content/editor.js index f2952281..4245b5ad 100644 --- a/common/content/editor.js +++ b/common/content/editor.js @@ -690,7 +690,7 @@ function Editor() //{{{ // motion = b, 0, gg, G, etc. executeCommandWithMotion: function (cmd, motion, count) { - if (!typeof count == "number" || count < 1) + if (typeof count != "number" || count < 1) count = 1; if (cmd == motion) @@ -705,12 +705,12 @@ function Editor() //{{{ { case "j": this.executeCommand("cmd_beginLine", 1); - this.executeCommand("cmd_selectLineNext", count+1); + this.executeCommand("cmd_selectLineNext", count + 1); break; case "k": this.executeCommand("cmd_beginLine", 1); this.executeCommand("cmd_lineNext", 1); - this.executeCommand("cmd_selectLinePrevious", count+1); + this.executeCommand("cmd_selectLinePrevious", count + 1); break; case "h": this.executeCommand("cmd_selectCharPrevious", count);