mirror of
https://github.com/tstack/lnav
synced 2024-11-08 01:10:29 +00:00
[delete-filter] Fix issue #701: (Filter deletion before enter)
This commit is contained in:
parent
f152107857
commit
3e82a06302
@ -1301,7 +1301,10 @@ static string com_delete_filter(exec_context &ec, string cmdline, vector<string>
|
|||||||
filter_stack &fs = tss->get_filters();
|
filter_stack &fs = tss->get_filters();
|
||||||
|
|
||||||
args[1] = remaining_args(cmdline, args);
|
args[1] = remaining_args(cmdline, args);
|
||||||
if (fs.delete_filter(args[1])) {
|
if (ec.ec_dry_run) {
|
||||||
|
retval = "";
|
||||||
|
}
|
||||||
|
else if (fs.delete_filter(args[1])) {
|
||||||
retval = "info: deleted filter";
|
retval = "info: deleted filter";
|
||||||
tss->text_filters_changed();
|
tss->text_filters_changed();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user