mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 15:25:46 +01:00
Fix conditional in editor.executeCommandWithMotion.
This commit is contained in:
@@ -690,7 +690,7 @@ function Editor() //{{{
|
|||||||
// motion = b, 0, gg, G, etc.
|
// motion = b, 0, gg, G, etc.
|
||||||
executeCommandWithMotion: function (cmd, motion, count)
|
executeCommandWithMotion: function (cmd, motion, count)
|
||||||
{
|
{
|
||||||
if (!typeof count == "number" || count < 1)
|
if (typeof count != "number" || count < 1)
|
||||||
count = 1;
|
count = 1;
|
||||||
|
|
||||||
if (cmd == motion)
|
if (cmd == motion)
|
||||||
@@ -705,12 +705,12 @@ function Editor() //{{{
|
|||||||
{
|
{
|
||||||
case "j":
|
case "j":
|
||||||
this.executeCommand("cmd_beginLine", 1);
|
this.executeCommand("cmd_beginLine", 1);
|
||||||
this.executeCommand("cmd_selectLineNext", count+1);
|
this.executeCommand("cmd_selectLineNext", count + 1);
|
||||||
break;
|
break;
|
||||||
case "k":
|
case "k":
|
||||||
this.executeCommand("cmd_beginLine", 1);
|
this.executeCommand("cmd_beginLine", 1);
|
||||||
this.executeCommand("cmd_lineNext", 1);
|
this.executeCommand("cmd_lineNext", 1);
|
||||||
this.executeCommand("cmd_selectLinePrevious", count+1);
|
this.executeCommand("cmd_selectLinePrevious", count + 1);
|
||||||
break;
|
break;
|
||||||
case "h":
|
case "h":
|
||||||
this.executeCommand("cmd_selectCharPrevious", count);
|
this.executeCommand("cmd_selectCharPrevious", count);
|
||||||
|
|||||||
Reference in New Issue
Block a user