mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 05:27:59 +01:00
Fix :abbr with no argument (in future, will be less push happy).
This commit is contained in:
@@ -165,7 +165,7 @@ function Editor() //{{{
|
|||||||
function (args)
|
function (args)
|
||||||
{
|
{
|
||||||
let [lhs, rhs] = args;
|
let [lhs, rhs] = args;
|
||||||
if (lhs.match(/\W/))
|
if (lhs && lhs.match(/\W/))
|
||||||
{
|
{
|
||||||
liberator.echoerr("E474: Invalid argument");
|
liberator.echoerr("E474: Invalid argument");
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user