From 9e94718087d2850a2bf5700b901010f5ad72bf08 Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Sat, 10 Jun 2023 23:10:02 +0000 Subject: [PATCH] editor: set normal mode in copy Previously there was no visual confirmation of a copy occuring. --- editor/editor.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }