From 9ecacc94c8010d6925b3de31a315b91545aa1142 Mon Sep 17 00:00:00 2001 From: Daniel Bainton Date: Sun, 13 Jan 2008 02:56:53 +0000 Subject: [PATCH] Fixing :buffer without arguments to act like vim --- content/buffers.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/content/buffers.js b/content/buffers.js index b3092c5f..e0e8aadc 100644 --- a/content/buffers.js +++ b/content/buffers.js @@ -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;