diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-02-04 12:52:48 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-02-04 12:52:48 +1100 |
| commit | 7f9fe32f2d2c1946df568a98dd82c1e851a1bb4a (patch) | |
| tree | d308be5253e992f34d0a5a3790165364cfc446c5 /src/selection.hh | |
| parent | d28dbd09182432e0cb85ecc5a2e7d062428c292f (diff) | |
Remove target_eol and small code cleanups
Diffstat (limited to 'src/selection.hh')
| -rw-r--r-- | src/selection.hh | 4 |
1 files changed, 3 insertions, 1 deletions
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<String, MemoryDomain::Selections>; +constexpr ColumnCount max_column{std::numeric_limits<int>::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)) {} |
