diff --git a/editor/editor.hpp b/editor/editor.hpp index f8abb14..572adad 100644 --- a/editor/editor.hpp +++ b/editor/editor.hpp @@ -630,6 +630,8 @@ inline constexpr bool buffer::shadow_copy() sel.max->col); // col_end_ix } + this->mode = mode::normal; + return true; } @@ -639,12 +641,11 @@ inline constexpr bool buffer::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; }