fixed bug in unindent command

This commit is contained in:
bx 2022-04-02 22:08:42 +01:00
parent 5c19952c66
commit e708b994da

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;
}