From 39ca50905cb44d810cc4f1c2064d38d15c885956 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Thu, 27 Sep 2007 18:57:48 +0000 Subject: [PATCH] :echo without arg should output an empty string instead of undefined --- chrome/content/vimperator/commands.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/vimperator/commands.js b/chrome/content/vimperator/commands.js index 613b8ccd..ae3d1ac6 100644 --- a/chrome/content/vimperator/commands.js +++ b/chrome/content/vimperator/commands.js @@ -486,6 +486,9 @@ function Commands() //{{{ function argToString(arg, color) { + if (!arg) + return ""; + try { // TODO: move to vimperator.eval()?