From a5421673904e84f204bd328832efea5003291697 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sun, 11 Nov 2007 03:27:38 +0000 Subject: [PATCH] rename the char parameter to ch for v.editor.findCharForward and v.editor.FindCharBackward as "char" is a reserved word --- content/editor.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/editor.js b/content/editor.js index 3469ae13..9d8d9a8a 100644 --- a/content/editor.js +++ b/content/editor.js @@ -264,12 +264,12 @@ vimperator.Editor = function () //{{{ }, // returns the position of char - findCharForward: function (char, count) + findCharForward: function (ch, count) { if (!editor()) return -1; - last_findChar = char; + last_findChar = ch; last_findChar_func = this.findCharForward; var text = editor().value; @@ -280,7 +280,7 @@ vimperator.Editor = function () //{{{ { if (text[i] == "\n") break; - if (text[i] == char) + if (text[i] == ch) count--; if (count == 0) return i + 1; // always position the cursor after the char @@ -291,12 +291,12 @@ vimperator.Editor = function () //{{{ }, // returns the position of char - findCharBackward: function (char, count) + findCharBackward: function (ch, count) { if (!editor()) return -1; - last_findChar = char; + last_findChar = ch; last_findChar_func = this.findCharBackward; var text = editor().value; @@ -307,7 +307,7 @@ vimperator.Editor = function () //{{{ { if (text[i] == "\n") break; - if (text[i] == char) + if (text[i] == ch) count--; if (count == 0) return i;