1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-23 15:23:29 +03:00

Fix quoting of tuple options

Fixes #2990
This commit is contained in:
Maxime Coste 2019-06-27 22:42:12 +10:00
parent 196b38b2e0
commit e4d6bff5ec
5 changed files with 5 additions and 1 deletions

View File

@ -174,7 +174,7 @@ constexpr char tuple_separator = '|';
template<typename... Types, size_t... I>
String option_to_string_impl(Quoting quoting, const std::tuple<Types...>& opt, std::index_sequence<I...>)
{
return join(make_array({option_to_string(std::get<I>(opt), quoting)...}), tuple_separator);
return quoter(quoting)(join(make_array({option_to_string(std::get<I>(opt), Quoting::Raw)...}), tuple_separator));
}
template<typename... Types>

View File

@ -0,0 +1 @@
!printf '%s' "$kak_quoted_opt_my_ranges"<ret>

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@
1 '1.1,1.1|a b' '1.2,1.2|b c'

View File

@ -0,0 +1 @@
declare-option range-specs my_ranges 1 '1.1,1.1|a b' '1.2,1.2|b c'