diff options
| author | Tim Allen <screwtape@froup.com> | 2018-08-28 17:34:18 +1000 |
|---|---|---|
| committer | Tim Allen <screwtape@froup.com> | 2018-08-28 17:43:16 +1000 |
| commit | 82c01c5dd382e2cd1bca0c027e598b66321705ce (patch) | |
| tree | 4ff941a1ff766829edb0ec8cc96aa09ead99deee /src/input_handler.cc | |
| parent | 373858f9bfb50fe2c5670beffbfe63654cc12314 (diff) | |
Speed up wrapping at word boundaries.
Previously, when wrapping lines at word boundaries, we would iterate forwards
for "wrap-width" characters, then iterate backwards until we found a word-break,
which was horribly slow.
Now we record the last word-boundary we saw as we iterate forwards, getting a
result in one pass.
Fixes #2339.
Diffstat (limited to 'src/input_handler.cc')
0 files changed, 0 insertions, 0 deletions
