Small style tweak, we know buffer begin coord is always {0,0}
This commit is contained in:
parent
a12475d88c
commit
c768ff9b6f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user