parent
456398601e
commit
8ff63198bc
|
@ -50,6 +50,7 @@ ByteCoord update_insert(ByteCoord coord, ByteCoord begin, ByteCoord end)
|
||||||
return coord;
|
return coord;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* For reference
|
||||||
ByteCoord update_erase(ByteCoord coord, ByteCoord begin, ByteCoord end)
|
ByteCoord update_erase(ByteCoord coord, ByteCoord begin, ByteCoord end)
|
||||||
{
|
{
|
||||||
if (coord < begin)
|
if (coord < begin)
|
||||||
|
@ -61,9 +62,9 @@ ByteCoord update_erase(ByteCoord coord, ByteCoord begin, ByteCoord end)
|
||||||
coord.line -= end.line - begin.line;
|
coord.line -= end.line - begin.line;
|
||||||
kak_assert(coord.line >= 0 and coord.column >= 0);
|
kak_assert(coord.line >= 0 and coord.column >= 0);
|
||||||
return coord;
|
return coord;
|
||||||
}
|
} */
|
||||||
|
|
||||||
static bool compare_selections(const Selection& lhs, const Selection& rhs)
|
bool compare_selections(const Selection& lhs, const Selection& rhs)
|
||||||
{
|
{
|
||||||
return lhs.min() < rhs.min();
|
return lhs.min() < rhs.min();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user