From fc7be678ed0ec71880a58a55de285c88bbd64bec Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 13 Nov 2023 19:19:53 +1100 Subject: Change window_range to emit each element as a separate string --- src/main.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main.cc') diff --git a/src/main.cc b/src/main.cc index 1d5b8dd7..bc12f335 100644 --- a/src/main.cc +++ b/src/main.cc @@ -46,6 +46,7 @@ struct { StringView notes; } constexpr version_notes[] = { { 0, + "» {+b}%val{window_range}{} is now emitted as separate strings\n" "» {+b}+{} only duplicates identical selections a single time\n" "» {+u}daemonize-session{} command\n" }, { @@ -387,8 +388,8 @@ static const EnvVarDesc builtin_env_vars[] = { { [](StringView name, const Context& context) -> Vector { const auto& setup = context.window().last_display_setup(); - return {format("{} {} {} {}", setup.first_line, setup.first_column, - setup.line_count, 0)}; + return {to_string(setup.first_line), to_string(setup.first_column), + to_string(setup.line_count), to_string(0)}; } }, { "history", false, -- cgit v1.2.3