bvcur.setMark(false);
switch (cmd.button()) {
case mouse_button::button1:
- // Set the cursor
+ if (!bvcur.selection())
+ // Set the cursor
+ bvcur.resetAnchor();
if (!bv->mouseSetCursor(cur, cmd.modifier() == ShiftModifier))
cur.screenUpdateFlags(Update::SinglePar | Update::FitCursor);
if (bvcur.wordSelection())