From aca074f82bcd713fe2609c9816d7d7bee38b6983 Mon Sep 17 00:00:00 2001 From: Ted Pavlic Date: Fri, 16 Jan 2009 19:21:04 -0500 Subject: [PATCH] Fix :abbr with no argument (in future, will be less push happy). --- common/content/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/editor.js b/common/content/editor.js index 90a146cd..307a7ac3 100644 --- a/common/content/editor.js +++ b/common/content/editor.js @@ -165,7 +165,7 @@ function Editor() //{{{ function (args) { let [lhs, rhs] = args; - if (lhs.match(/\W/)) + if (lhs && lhs.match(/\W/)) { liberator.echoerr("E474: Invalid argument"); return false;