summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2023-11-13 19:19:53 +1100
committerMaxime Coste <mawww@kakoune.org>2023-11-13 19:22:33 +1100
commitfc7be678ed0ec71880a58a55de285c88bbd64bec (patch)
treefaa665369197a5a49fb294d72b20d9474ed1e335 /src/main.cc
parent2261b48e35eac3d62346745e0c2beef7f72fb37d (diff)
Change window_range to emit each element as a separate string
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc5
1 files changed, 3 insertions, 2 deletions
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<String>
{
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,