Skip to content

Commit 6aa437f

Browse files
committed
[cmds] don't trim in :clear-highlight
Related to #1638
1 parent 358c34a commit 6aa437f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lnav_commands.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ com_clear_highlight(exec_context& ec,
14691469
auto* tc = *lnav_data.ld_view_stack.top();
14701470
auto& hm = tc->get_highlights();
14711471

1472-
args[1] = remaining_args(cmdline, args);
1472+
args[1] = remaining_args_frag(cmdline, args).to_string();
14731473
auto hm_iter = hm.find({highlight_source_t::INTERACTIVE, args[1]});
14741474
if (hm_iter == hm.end()) {
14751475
return ec.make_error("highlight does not exist -- {}", args[1]);

0 commit comments

Comments
 (0)