editor: set normal mode in copy
Previously there was no visual confirmation of a copy occuring.
This commit is contained in:
parent
a11dadcde8
commit
9e94718087
@ -630,6 +630,8 @@ inline constexpr bool buffer<C, R>::shadow_copy()
|
||||
sel.max->col); // col_end_ix
|
||||
}
|
||||
|
||||
this->mode = mode::normal;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -639,12 +641,11 @@ inline constexpr bool buffer<C, R>::shadow_cut()
|
||||
if (this->mode != mode::mark)
|
||||
return false;
|
||||
|
||||
// copy unsets mode::mark
|
||||
this->shadow_copy();
|
||||
|
||||
this->mark_delete();
|
||||
|
||||
this->mode = mode::normal;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user