From c9229f73b359c2a89e9afa1c0781e888396da859 Mon Sep 17 00:00:00 2001 From: Robert Bisewski Date: Sun, 22 Oct 2017 16:09:50 -0500 Subject: [PATCH] adding TODO to denote the current state of this code --- src/fe-text/textbuffer-view.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fe-text/textbuffer-view.c b/src/fe-text/textbuffer-view.c index 44ec9cc3..4b25e0ce 100644 --- a/src/fe-text/textbuffer-view.c +++ b/src/fe-text/textbuffer-view.c @@ -1237,6 +1237,10 @@ void textbuffer_view_remove_line(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line) textbuffer_remove(view->buffer, line); } +// TODO: this works better than the existing /lastlog logic, however +// this fails when the log is *much* longer than the screen size, +// so additional logic will be need to handle that; specifically +// consider simply reusing logic from the /clear function void textbuffer_view_remove_line_from_lastlog(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line) { unsigned char update_counter;