From 6c71be2e5612877335f933e9ef906128cf9a6b4b Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 31 Aug 2024 19:17:23 -0700 Subject: [PATCH] clean up an issue I feel confident about --- undo.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/undo.lua b/undo.lua index 7f7d842..51ba8c7 100644 --- a/undo.lua +++ b/undo.lua @@ -1,8 +1,7 @@ -- undo/redo by managing the sequence of events in the current session -- based on https://github.com/akkartik/mu1/blob/master/edit/012-editor-undo.mu --- Incredibly inefficient; we make a copy of lines on every single keystroke. --- The hope here is that we're either editing small files or just reading large files. +-- makes a copy of lines on every single keystroke; will be inefficient with really long lines. -- TODO: highlight stuff inserted by any undo/redo operation -- TODO: coalesce multiple similar operations