summaryrefslogtreecommitdiff
path: root/src/buffer_utils.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-05-07 19:51:01 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-05-07 19:53:45 +0100
commit8546788b436de31e1c523234941469b978ebb20e (patch)
treee5a24297bbc46d5e7599335f37fd9b3a77e77012 /src/buffer_utils.hh
parent54ceb3a0d0b6835cec58d6479d160c1ab76b44d3 (diff)
Refactor LineAndColumn coordinates
BufferCoord -> ByteCoord DisplayCoord -> CharCoord Moved their definition along with LineAndColumn into coord.hh
Diffstat (limited to 'src/buffer_utils.hh')
-rw-r--r--src/buffer_utils.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer_utils.hh b/src/buffer_utils.hh
index ba295821..bd617595 100644
--- a/src/buffer_utils.hh
+++ b/src/buffer_utils.hh
@@ -24,7 +24,7 @@ inline CharCount char_length(const Buffer& buffer, const Selection& range)
utf8::next(buffer.iterator_at(range.max())));
}
-inline void avoid_eol(const Buffer& buffer, BufferCoord& coord)
+inline void avoid_eol(const Buffer& buffer, ByteCoord& coord)
{
const auto column = coord.column;
const auto& line = buffer[coord.line];
@@ -39,7 +39,7 @@ inline void avoid_eol(const Buffer& buffer, Selection& sel)
}
CharCount get_column(const Buffer& buffer,
- CharCount tabstop, BufferCoord coord);
+ CharCount tabstop, ByteCoord coord);
Buffer* create_fifo_buffer(String name, int fd, bool scroll = false);