[config] add missing enum terminator

the terminator is needed in the enum_value_t array

(I should really make it a real container...)
pull/1092/head
Tim Stack 2 years ago
parent 3990517fcb
commit 12d70f9996

@ -632,8 +632,7 @@
"type": "string", "type": "string",
"enum": [ "enum": [
"top", "top",
"cursor", "cursor"
""
], ],
"examples": [ "examples": [
"top", "top",

@ -510,7 +510,10 @@ static const struct json_path_container keymap_defs_handlers = {
static const json_path_handler_base::enum_value_t _movement_values[] = { static const json_path_handler_base::enum_value_t _movement_values[] = {
{"top", config_movement_mode::TOP}, {"top", config_movement_mode::TOP},
{"cursor", config_movement_mode::CURSOR}}; {"cursor", config_movement_mode::CURSOR},
json_path_handler_base::ENUM_TERMINATOR,
};
static const struct json_path_container movement_handlers = { static const struct json_path_container movement_handlers = {
yajlpp::property_handler("mode") yajlpp::property_handler("mode")

@ -383,6 +383,9 @@ can always use  q  to pop the top view off of the stack.
x Toggle the hiding of log message fields. The x Toggle the hiding of log message fields. The
hidden fields will be replaced with three bullets hidden fields will be replaced with three bullets
and highlighted in yellow. and highlighted in yellow.
CTRL-X Toggle the cursor mode. Allows moving the selected
line instead of keeping it fixed at the top of the
current screen.
F2 Toggle mouse support. F2 Toggle mouse support.
Query Query

@ -1,4 +1,4 @@
Min: 0   1-23   24-48   49+ Max: 291690 Min: 0   1-23   24-48   49+ Max: 291690
 Thu Nov 03 00:15:00                 Thu Nov 03 00:15:00               
70 values in the range 0.00-3788.18 70 values in the range 0.00-3788.18
 Thu Nov 03 00:20:00  Thu Nov 03 00:20:00

Loading…
Cancel
Save