From fbb216d2eddee99787e87de9c22a8e4780dccf12 Mon Sep 17 00:00:00 2001 From: xificurC Date: Tue, 30 Jun 2015 16:06:49 +0200 Subject: commands starting with horizontal whitespace don't go into the history --- src/input_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input_handler.cc') diff --git a/src/input_handler.cc b/src/input_handler.cc index 5e11bfa6..30c14110 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -842,7 +842,7 @@ private: static void history_push(History& history, StringView entry) { - if(entry.empty()) + if(entry.empty() or is_horizontal_blank(entry[0_byte])) { return; } -- cgit v1.2.3