mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-25 12:36:11 +03:00
fix exception being thrown in error in decl command
This commit is contained in:
parent
386813bbfd
commit
374f97a592
@ -854,7 +854,7 @@ const CommandDesc declare_option_cmd = {
|
||||
|
||||
if (parser[0] == "int")
|
||||
opt = &opts.declare_option<int>(parser[1], docstring, 0, flags);
|
||||
if (parser[0] == "bool")
|
||||
else if (parser[0] == "bool")
|
||||
opt = &opts.declare_option<bool>(parser[1], docstring, 0, flags);
|
||||
else if (parser[0] == "str")
|
||||
opt = &opts.declare_option<String>(parser[1], docstring, "", flags);
|
||||
|
Loading…
Reference in New Issue
Block a user