summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorxificurC <xificurC@gmail.com>2015-06-30 16:06:49 +0200
committerxificurC <xificurC@gmail.com>2015-06-30 16:06:49 +0200
commitfbb216d2eddee99787e87de9c22a8e4780dccf12 (patch)
treec1180d9b57b20a5784875bfc66a2402d22a2394b /src/input_handler.cc
parent670d8f7d1ebbe5a1eb6cc6a37691c2e2a791c578 (diff)
commands starting with horizontal whitespace don't go into the history
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc2
1 files changed, 1 insertions, 1 deletions
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;
}