mirror of
https://github.com/tstack/lnav
synced 2024-11-05 21:21:19 +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();
|
||||
|
||||
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";
|
||||
tss->text_filters_changed();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user