1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-29 03:32:27 +01:00

rename the char parameter to ch for v.editor.findCharForward and

v.editor.FindCharBackward as "char" is a reserved word
This commit is contained in:
Doug Kearns
2007-11-11 03:27:38 +00:00
parent c362c70f03
commit a542167390

View File

@@ -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;