From 7f9fe32f2d2c1946df568a98dd82c1e851a1bb4a Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 4 Feb 2019 12:52:48 +1100 Subject: Remove target_eol and small code cleanups --- src/selection.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/selection.hh') diff --git a/src/selection.hh b/src/selection.hh index 493a01b4..c08bca9c 100644 --- a/src/selection.hh +++ b/src/selection.hh @@ -8,6 +8,8 @@ namespace Kakoune using CaptureList = Vector; +constexpr ColumnCount max_column{std::numeric_limits::max()}; + // A selection is a Selection, associated with a CaptureList struct Selection { @@ -15,7 +17,7 @@ struct Selection Selection() = default; Selection(BufferCoord pos) : Selection(pos,pos) {} - Selection(BufferCoord anchor, BufferCoord cursor, + Selection(BufferCoord anchor, BufferCoordAndTarget cursor, CaptureList captures = {}) : m_anchor{anchor}, m_cursor{cursor}, m_captures(std::move(captures)) {} -- cgit v1.2.3