1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 07:37:59 +01:00

Fix :abbr with no argument (in future, will be less push happy).

This commit is contained in:
Ted Pavlic
2009-01-16 19:21:04 -05:00
parent 704303c108
commit aca074f82b

View File

@@ -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;