History

m_option: reallow setting list options to no value to -clr them

d2c409c56b49252c85eefd340863fd59a36808d6 broke setting `--slang=` to effectively `-clr` the option. Restore the behavior because scripts rely on it.

llyyr committed 1 year ago

Commit 72d976b1 parent 79e29781 file · +1 −1Browse files

Unified · Split

options/m_option.c+1−1
@@ -1417,7 +1417,7 @@ static char **separate_input_param(const m_option_t *opt, bstr param, · 1416 unmodified lines
14171417 str = bstr_cut(str, 1);
14181418 n++;
14191419 }
1420− if (n == 0)
1420+ if (n == 0 && op != OP_NONE)
14211421 return NULL;
14221422
14231423 char **list = talloc_array(NULL, char *, n + 2);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t