Skip to content

Commit be0c491

Browse files
committed
[prompt] missed updating enum check
1 parent a7270e8 commit be0c491

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lnav.prompt.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1470,7 +1470,7 @@ prompt::get_config_value_completion(const std::string& path,
14701470
if (jph.jph_bool_cb) {
14711471
poss_strs = {"true", "false"};
14721472
} else if (jph.jph_enum_values != nullptr) {
1473-
for (auto lpc = size_t{0}; jph.jph_enum_values[lpc].first != nullptr;
1473+
for (auto lpc = size_t{0}; !jph.jph_enum_values[lpc].first.empty();
14741474
lpc++)
14751475
{
14761476
poss_strs.emplace_back(jph.jph_enum_values[lpc].first.to_string());

0 commit comments

Comments
 (0)