mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-01 16:32:54 +03:00
parent
ab56be090a
commit
98627726cf
@ -1342,7 +1342,7 @@ void option_from_string(StringView str, InclusiveBufferRange& opt)
|
||||
if (first.line < 0 or first.column < 0 or last.line < 0 or last.column < 0)
|
||||
throw runtime_error("coordinates elements should be >= 1");
|
||||
|
||||
opt = { first, last };
|
||||
opt = { std::min(first, last), std::max(first, last) };
|
||||
}
|
||||
|
||||
BufferCoord& get_first(RangeAndString& r) { return std::get<0>(r).first; }
|
||||
|
Loading…
Reference in New Issue
Block a user