Buffer: add comment for clamp
This commit is contained in:
parent
711c05b81e
commit
4ae2fcffbd
|
@ -137,6 +137,7 @@ public:
|
||||||
BufferIterator iterator_at(const BufferCoord& line_and_column) const;
|
BufferIterator iterator_at(const BufferCoord& line_and_column) const;
|
||||||
BufferCoord line_and_column_at(const BufferIterator& iterator) const;
|
BufferCoord line_and_column_at(const BufferIterator& iterator) const;
|
||||||
|
|
||||||
|
// returns nearest valid coordinates from given ones
|
||||||
BufferCoord clamp(const BufferCoord& line_and_column) const;
|
BufferCoord clamp(const BufferCoord& line_and_column) const;
|
||||||
|
|
||||||
const std::string& name() const { return m_name; }
|
const std::string& name() const { return m_name; }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user