diff options
-rw-r--r-- | src/kilo.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/kilo.c b/src/kilo.c index 5b9fd76..8bc1213 100644 --- a/src/kilo.c +++ b/src/kilo.c @@ -574,12 +574,13 @@ static void editorDelChar() { static void editorUncommentCursorRow() { erow *row = &E.row[E.rowoff+E.cy]; - editorRowDelChar(row, 0); - editorRowDelChar(row, 0); - editorRowDelChar(row, 0); - editorRowDelChar(row, 0); E.coloff = 0; - E.cx = 0; + E.cx = 4; + editorUpdateRow(row); + editorDelChar(); + editorDelChar(); + editorDelChar(); + editorDelChar(); } static void editorCommentCursorRow() { |