mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-15 01:11:09 +03:00
Merge remote-tracking branch 'Delapouite/user-dash'
This commit is contained in:
commit
c05b3c5d6c
@ -61,7 +61,7 @@ void KeymapManager::add_user_mode(String user_mode_name)
|
||||
if (contains(user_modes(), user_mode_name))
|
||||
throw runtime_error(format("user mode '{}' already defined", user_mode_name));
|
||||
|
||||
if (contains_that(user_mode_name, [](char c){ return not isalnum(c); }))
|
||||
if (contains_that(user_mode_name, is_blank))
|
||||
throw runtime_error(format("invalid mode name: '{}'", user_mode_name));
|
||||
|
||||
user_modes().push_back(std::move(user_mode_name));
|
||||
|
Loading…
Reference in New Issue
Block a user