A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/a34652ee846b40247064d1cc4ccf9d0aa731638c below:

validate user_command name (#17004) · neovim/neovim@a34652e · GitHub

@@ -1387,6 +1387,11 @@ void add_user_command(String name, Object command, Dict(user_command) *opts, int

1387 1387

LuaRef luaref = LUA_NOREF;

1388 1388

LuaRef compl_luaref = LUA_NOREF;

1389 1389 1390 +

if (mb_islower(name.data[0])) {

1391 +

api_set_error(err, kErrorTypeValidation, "'name' must begin with an uppercase letter");

1392 +

goto err;

1393 +

}

1394 + 1390 1395

if (HAS_KEY(opts->range) && HAS_KEY(opts->count)) {

1391 1396

api_set_error(err, kErrorTypeValidation, "'range' and 'count' are mutually exclusive");

1392 1397

goto err;


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4