diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-09-09 19:35:54 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-09-09 19:42:57 +0100 |
| commit | 50924944274d43149267cd9238625e40b46bbfeb (patch) | |
| tree | 395366fa1159a5cffa760a4ae0ce98fd9604ee84 /src/selection.hh | |
| parent | 7fc1564c0c15508a44abe1627002532d6ae52ae2 (diff) | |
Add support for target column preservation
Fixes #64
Diffstat (limited to 'src/selection.hh')
| -rw-r--r-- | src/selection.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/selection.hh b/src/selection.hh index c1db3dd6..4bd25e94 100644 --- a/src/selection.hh +++ b/src/selection.hh @@ -21,10 +21,10 @@ struct Selection void merge_with(const Selection& range); ByteCoord& anchor() { return m_anchor; } - ByteCoord& cursor() { return m_cursor; } + ByteCoordAndTarget& cursor() { return m_cursor; } const ByteCoord& anchor() const { return m_anchor; } - const ByteCoord& cursor() const { return m_cursor; } + const ByteCoordAndTarget& cursor() const { return m_cursor; } CaptureList& captures() { return m_captures; } const CaptureList& captures() const { return m_captures; } @@ -42,7 +42,7 @@ struct Selection private: ByteCoord m_anchor; - ByteCoord m_cursor; + ByteCoordAndTarget m_cursor; CaptureList m_captures; }; |
