mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 10:18:00 +01:00
Fixing :buffer without arguments to act like vim
This commit is contained in:
@@ -660,7 +660,11 @@ vimperator.Buffer = function () //{{{
|
|||||||
// is null, the last used string is used again
|
// is null, the last used string is used again
|
||||||
switchTo: function (buffer, allowNonUnique, count, reverse)
|
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"
|
// store this command, so it can be repeated with "B"
|
||||||
lastBufferSwitchArgs = buffer;
|
lastBufferSwitchArgs = buffer;
|
||||||
|
|||||||
Reference in New Issue
Block a user