Fixed bug where cursor was positioned to the second character instead of the first, after reading a file

master
Aadhavan Srinivasan 2 years ago
parent 6d50747752
commit 5414cf41c9

@ -113,7 +113,7 @@ int main(int argc, char** argv) {
return -10; return -10;
} }
while (num_of_chars > 1) { while (num_of_chars > 0) {
buffer_left(buffer); buffer_left(buffer);
num_of_chars--; num_of_chars--;
} }

Loading…
Cancel
Save