From 804b1fd62f3fae0bb2434f1b571c0073fa8b009b Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 24 Sep 2008 06:00:56 +0000 Subject: [PATCH] add a default string for the RHS of programmatically defined user mappings in :map list output --- content/mappings.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/content/mappings.js b/content/mappings.js index 60530e26..bf2275a2 100644 --- a/content/mappings.js +++ b/content/mappings.js @@ -431,9 +431,8 @@ liberator.Mappings = function () //{{{ { list += ""; list += " " + modeSign + " " + liberator.util.escapeHTML(maps[i].names[j]) + ""; - if (maps[i].rhs) - list += " " + (maps[i].noremap ? "*" : " ") + "" - + "" + liberator.util.escapeHTML(maps[i].rhs) + ""; + list += " " + (maps[i].noremap ? "*" : " ") + ""; + list += "" + liberator.util.escapeHTML(maps[i].rhs || "function () { ... }") + ""; list += ""; } }