diff options
author | Andrey Nazarov <skuller@skuller.net> | 2013-03-12 21:06:33 +0400 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2013-03-12 21:16:10 +0400 |
commit | 3a7f7590c7005094e3e48d42ee92b39ad091028c (patch) | |
tree | ca071ed1563db40c9d3064364fef59965ff982ff /src/client/ui/script.c | |
parent | 81d367700746853119939a30e2db60ff63bfbef9 (diff) |
Add ‘--numeric’ option to field items.
Currently equivalent to ‘--integer’ (allow any numeric input), but
‘--integer’ may be later redefined to allow only integer input.
Diffstat (limited to 'src/client/ui/script.c')
-rw-r--r-- | src/client/ui/script.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/ui/script.c b/src/client/ui/script.c index 9d276ad..4176ee6 100644 --- a/src/client/ui/script.c +++ b/src/client/ui/script.c @@ -397,6 +397,7 @@ static void Parse_Field(menuFrameWork_t *menu) static const cmd_option_t o_field[] = { { "c", "center" }, { "i", "integer" }, + { "n", "numeric" }, { "s:", "status" }, { "w:", "width" }, { NULL } @@ -414,6 +415,7 @@ static void Parse_Field(menuFrameWork_t *menu) center = qtrue; break; case 'i': + case 'n': flags |= QMF_NUMBERSONLY; break; case 's': |