From a377ff79aae165a3cae46b52e5dbc8f9a80dd008 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 12 Mar 2012 21:39:54 +0000 Subject: [PATCH] buffer style fix --- src/buffer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buffer.cc b/src/buffer.cc index 6bea08c7..1e86f5c4 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -75,7 +75,7 @@ BufferSize Buffer::line_length(BufferPos line) const { assert(not m_lines.empty()); BufferPos end = (line < m_lines.size() - 1) ? - m_lines[line + 1] : m_content.size(); + m_lines[line + 1] : length(); return end - m_lines[line]; }