diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-11-24 17:25:14 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-11-24 18:11:29 +1100 |
| commit | 6fd486c65e74d744c282a996e04beae42ca684d1 (patch) | |
| tree | c93ac65bb0d51411f9ca684406caad11acc9ce4c /src/display_buffer.cc | |
| parent | 34f48cc851e73548071ffaf799e0a52be954e11f (diff) | |
Replace tab characters with spaces in info/echo
This is tricky to fix better than that as tabs make text length
dependent on where it will get displayed and what preceedes it.
Also fix an issue with empty info title
Fixes #2237
Diffstat (limited to 'src/display_buffer.cc')
| -rw-r--r-- | src/display_buffer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display_buffer.cc b/src/display_buffer.cc index 12a234e2..e7e2da54 100644 --- a/src/display_buffer.cc +++ b/src/display_buffer.cc @@ -286,7 +286,7 @@ DisplayLine parse_display_line(StringView line, const FaceRegistry& faces, const pos = closing + 1; } } - if (c == '\n') // line breaks are forbidden, replace with space + if (c == '\n' or c == '\t') // line breaks and tabs are forbidden, replace with space { content += StringView{pos, it+1}; content.back() = ' '; |
