mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 04:41:14 -03:00
Fix unnecessary move warning
This commit is contained in:
@@ -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;
|
abbrs_position_t position = opts.position ? *opts.position : abbrs_position_t::command;
|
||||||
|
|
||||||
// Note historically we have allowed overwriting existing abbreviations.
|
// 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.regex = std::move(regex);
|
||||||
abbr.replacement_is_function = opts.function.has_value();
|
abbr.replacement_is_function = opts.function.has_value();
|
||||||
abbr.set_cursor_marker = opts.set_cursor_marker;
|
abbr.set_cursor_marker = opts.set_cursor_marker;
|
||||||
|
|||||||
Reference in New Issue
Block a user