From 06e3413ab082c6249eca8034245c0a6120e4532a Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Tue, 18 Feb 2020 10:05:21 -0500 Subject: [PATCH] why the heck did i write it that way in the first place? --- terminal.d | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/terminal.d b/terminal.d index b9950b2..b175a7f 100644 --- a/terminal.d +++ b/terminal.d @@ -3949,8 +3949,10 @@ class LineGetter { /// void deleteToEndOfLine() { - while(cursorPosition < line.length) - deleteChar(); + line = line[0 .. cursorPosition]; + line.assumeSafeAppend(); + //while(cursorPosition < line.length) + //deleteChar(); } int availableLineLength() {