From 0f58f014289b12afd2391fb8cc5d99295ab7757d Mon Sep 17 00:00:00 2001 From: Jason Felice Date: Tue, 12 Nov 2019 19:45:48 -0500 Subject: Fix display column computations Closes #3201 --- src/buffer_utils.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/buffer_utils.hh') 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); -- cgit v1.2.3