summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-04-09 01:08:38 +0100
committerMaxime Coste <frrrwww@gmail.com>2016-04-09 01:08:38 +0100
commitc768ff9b6f025ac656cebb5c98de84959203a2ff (patch)
treeecc1cc3cb290425de1eba584e73f6604ce8d6ec1 /src
parenta12475d88c4ccf3f27a408e15f3741bc432cbd18 (diff)
Small style tweak, we know buffer begin coord is always {0,0}
Diffstat (limited to 'src')
-rw-r--r--src/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index 9a50ec46..35375c63 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -118,7 +118,7 @@ void register_env_vars()
"cursor_byte_offset", false,
[](StringView name, const Context& context) -> String
{ auto cursor = context.selections().main().cursor();
- return to_string(context.buffer().distance(context.buffer().begin().coord(), cursor)); }
+ return to_string(context.buffer().distance({0,0}, cursor)); }
}, {
"selection_desc", false,
[](StringView name, const Context& context)