fixed bug in unindent command

master
bx 2022-04-02 22:08:42 +01:00
parent 5c19952c66
commit e708b994da
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ c_unindent(char *c) {
for(int i = 0; i < ROW_SIZE - 1; i++) {
row->text[i] = row->text[i + 1];
}
row->text[ROW_SIZE] = 0;
row->text[ROW_SIZE - 1] = 0;
}