From 72d372cca18cc18341c879e7031dbaefad0db46c Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Thu, 14 Mar 2024 17:05:58 -0500 Subject: [PATCH] Fix unnecessary move warning --- src/builtins/abbr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtins/abbr.cpp b/src/builtins/abbr.cpp index 7e202712e..94658d750 100644 --- a/src/builtins/abbr.cpp +++ b/src/builtins/abbr.cpp @@ -262,7 +262,7 @@ static int abbr_add(const abbr_options_t &opts, io_streams_t &streams) { abbrs_position_t position = opts.position ? *opts.position : abbrs_position_t::command; // Note historically we have allowed overwriting existing abbreviations. - abbreviation_t abbr{std::move(name), std::move(key), std::move(replacement), position}; + abbreviation_t abbr{name, std::move(key), std::move(replacement), position}; abbr.regex = std::move(regex); abbr.replacement_is_function = opts.function.has_value(); abbr.set_cursor_marker = opts.set_cursor_marker;