From 4ae2fcffbd9f84db4bac0fecb198c0c8267e9031 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 5 Dec 2011 19:21:11 +0000 Subject: [PATCH] Buffer: add comment for clamp --- src/buffer.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/buffer.hh b/src/buffer.hh index 0221e46a..96353cee 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -137,7 +137,8 @@ public: BufferIterator iterator_at(const BufferCoord& line_and_column) const; BufferCoord line_and_column_at(const BufferIterator& iterator) const; - BufferCoord clamp(const BufferCoord& line_and_column) const; + // returns nearest valid coordinates from given ones + BufferCoord clamp(const BufferCoord& line_and_column) const; const std::string& name() const { return m_name; }