mirror of
https://github.com/textmate/textmate.git
synced 2026-01-22 13:17:55 -05:00
Make selections created from string unanchored
The selection string syntax doesn’t support specifying an anchor and mainly it is used in situations where the selection should be unanchored.
This commit is contained in:
@@ -106,7 +106,7 @@ namespace ng
|
||||
|
||||
static range_t cap (buffer_t const& buf, text::range_t const& range)
|
||||
{
|
||||
return range_t(cap(buf, range.from), cap(buf, range.to), range.columnar);
|
||||
return range_t(cap(buf, range.from), cap(buf, range.to), range.columnar, false, true);
|
||||
}
|
||||
|
||||
ranges_t convert (buffer_t const& buf, text::selection_t const& sel)
|
||||
|
||||
Reference in New Issue
Block a user