diff options
| author | Jason Felice <jason.m.felice@gmail.com> | 2019-11-12 19:45:48 -0500 |
|---|---|---|
| committer | Jason Felice <jason.m.felice@gmail.com> | 2019-11-12 20:43:14 -0500 |
| commit | 0f58f014289b12afd2391fb8cc5d99295ab7757d (patch) | |
| tree | dac28c499a66a8b1fb042f62562c8ead4ff95806 /src/buffer_utils.hh | |
| parent | a7d3976a1002a80c4e5a17c989921025ded89450 (diff) | |
Fix display column computations
Closes #3201
Diffstat (limited to 'src/buffer_utils.hh')
| -rw-r--r-- | src/buffer_utils.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer_utils.hh b/src/buffer_utils.hh index a635658b..586cbb1d 100644 --- a/src/buffer_utils.hh +++ b/src/buffer_utils.hh @@ -69,8 +69,8 @@ inline bool is_eow(const Buffer& buffer, BufferCoord coord) return is_word(*(it-1)) and not is_word(*it); } -ColumnCount get_column(const Buffer& buffer, - ColumnCount tabstop, BufferCoord coord); +ColumnCount get_column(const Buffer& buffer, ColumnCount tabstop, BufferCoord coord); +ColumnCount column_length(const Buffer& buffer, ColumnCount tabstop, LineCount line); ByteCount get_byte_to_column(const Buffer& buffer, ColumnCount tabstop, DisplayCoord coord); |
