summaryrefslogtreecommitdiff
path: root/src/client_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/client_manager.cc')
-rw-r--r--src/client_manager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client_manager.cc b/src/client_manager.cc
index c4dbda6f..6c3b49ce 100644
--- a/src/client_manager.cc
+++ b/src/client_manager.cc
@@ -187,7 +187,7 @@ static DisplayLine generate_status_line(Client& client)
{
auto& context = client.context();
auto pos = context.editor().main_selection().last();
- auto col = context.buffer().char_distance({pos.line, 0}, pos);
+ auto col = context.buffer()[pos.line].char_count_to(pos.column);
std::ostringstream oss;
oss << context.buffer().display_name()