diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-02-03 13:44:42 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-02-03 13:44:42 +0000 |
| commit | 2a28260f87dabe1b018aab460f82ff73e350e722 (patch) | |
| tree | 9843858799eaaac84e1b8da7494e6ab2665c60da /src | |
| parent | 61ff8a9bb25321efbcd53ab06ab382c9ce142af8 (diff) | |
Extend line numbering max width to 15 char
Diffstat (limited to 'src')
| -rw-r--r-- | src/highlighters.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/highlighters.cc b/src/highlighters.cc index 8a347e75..d0a1012e 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -515,8 +515,8 @@ void show_line_numbers(const Context& context, HighlightFlags flags, DisplayBuff const Face face = get_face("LineNumbers"); for (auto& line : display_buffer.lines()) { - char buffer[10]; - snprintf(buffer, 10, format, (int)line.range().first.line + 1); + char buffer[16]; + snprintf(buffer, 16, format, (int)line.range().first.line + 1); DisplayAtom atom{buffer}; atom.face = face; line.insert(line.begin(), std::move(atom)); |
