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

Fixing :buffer without arguments to act like vim

This commit is contained in:
Daniel Bainton
2008-01-13 02:56:53 +00:00
parent f369cd1fe0
commit 9ecacc94c8

View File

@@ -660,7 +660,11 @@ vimperator.Buffer = function () //{{{
// is null, the last used string is used again
switchTo: function (buffer, allowNonUnique, count, reverse)
{
if (buffer != null)
if (buffer == "")
{
return;
}
else if (buffer != null)
{
// store this command, so it can be repeated with "B"
lastBufferSwitchArgs = buffer;