From 2da1e8b104dee2bd810bbeaaf5a105e715706222 Mon Sep 17 00:00:00 2001 From: InNiD Date: Wed, 27 Aug 2025 17:33:07 +0800 Subject: [PATCH] modify editorEdlChar --- kilo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kilo.c b/kilo.c index 0d8aef4e..dbbcc6f6 100644 --- a/kilo.c +++ b/kilo.c @@ -777,7 +777,7 @@ void editorDelChar(void) { E.cy--; E.cx = filecol; if (E.cx >= E.screencols) { - int shift = (E.screencols-E.cx)+1; + int shift = (E.cx-E.screencols)+1; E.cx -= shift; E.coloff += shift; }