Small style tweak, we know buffer begin coord is always {0,0}

This commit is contained in:
Maxime Coste 2016-04-09 01:08:38 +01:00
parent a12475d88c
commit c768ff9b6f

View File

@ -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)