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;