diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-06-05 18:47:39 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-06-06 19:44:07 +0200 |
| commit | 70bf71e51fb8433cbbd3170d698ad3dc28ce8d16 (patch) | |
| tree | c3e1e209ac775793b93511a580fcb272e0465a3b /src/client_manager.cc | |
| parent | 580749a91da1e293c9dc8c5f3a72aa9c5a5e7666 (diff) | |
remove Buffer:char_{distance,advance} use line access instead
Diffstat (limited to 'src/client_manager.cc')
| -rw-r--r-- | src/client_manager.cc | 2 |
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() |
