From 9f0bca53c41a5e363020ab7421b37b165b2db9a2 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 8 Jan 2017 23:26:15 +0000 Subject: [PATCH] Small code cleanups --- src/command_manager.cc | 3 +-- src/input_handler.cc | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/command_manager.cc b/src/command_manager.cc index b3c5c862..44900c4f 100644 --- a/src/command_manager.cc +++ b/src/command_manager.cc @@ -386,8 +386,7 @@ String expand_impl(StringView str, const Context& context, String expand(StringView str, const Context& context, const ShellContext& shell_context) { - return expand_impl(str, context, shell_context, - [](String s) { return std::move(s); }); + return expand_impl(str, context, shell_context, [](String s){ return s; }); } String expand(StringView str, const Context& context, diff --git a/src/input_handler.cc b/src/input_handler.cc index efeddfb9..7b0ed2e0 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -936,7 +936,6 @@ private: LineEditor m_line_editor; bool m_autoshowcompl; PromptFlags m_flags; - bool m_history_drop_blank_prefix; using History = Vector; static UnorderedMap ms_history;