fixed bug in unindent command
parent
5c19952c66
commit
e708b994da
|
@ -18,6 +18,7 @@ c_unindent(char *c) {
|
||||||
for(int i = 0; i < ROW_SIZE - 1; i++) {
|
for(int i = 0; i < ROW_SIZE - 1; i++) {
|
||||||
row->text[i] = row->text[i + 1];
|
row->text[i] = row->text[i + 1];
|
||||||
}
|
}
|
||||||
row->text[ROW_SIZE] = 0;
|
row->text[ROW_SIZE - 1] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue