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:
Allan Odgaard
2012-09-06 14:08:08 +02:00
parent 6dde27d33c
commit 2076f80ca8

View File

@@ -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)