mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 07:14:50 +01:00
fix: other way around...
This commit is contained in:
parent
e7ad2723ba
commit
8267e1b890
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ impl Controller<CursorEvent> for CursorController {
|
|||
/// enqueue a cursor event to be broadcast to current workspace
|
||||
/// will automatically invert cursor start/end if they are inverted
|
||||
fn send(&self, mut cursor: CursorPosition) -> Result<(), Error> {
|
||||
if cursor.start() < cursor.end() {
|
||||
if cursor.start() > cursor.end() {
|
||||
std::mem::swap(&mut cursor.start, &mut cursor.end);
|
||||
}
|
||||
Ok(self.op.send(CursorEvent {
|
||||
|
|
Loading…
Reference in a new issue