mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 23:28:15 +01:00
always specify the radix arg when calling parseInt rather than rely on it
'guessing' correctly
This commit is contained in:
@@ -448,7 +448,7 @@ vimperator.Buffer = function() //{{{
|
||||
|
||||
var match;
|
||||
if (match = buffer.match(/^(\d+):?/))
|
||||
return vimperator.tabs.select(parseInt(match[1]) - 1, false); // make it zero-based
|
||||
return vimperator.tabs.select(parseInt(match[1], 10) - 1, false); // make it zero-based
|
||||
|
||||
var matches = [];
|
||||
var lower_buffer = buffer.toLowerCase();
|
||||
|
||||
Reference in New Issue
Block a user