From 5414cf41c922a9ed7c7ec06a507b2b950ef1770d Mon Sep 17 00:00:00 2001 From: Rockingcool Date: Wed, 19 Apr 2023 17:21:57 -0500 Subject: [PATCH] Fixed bug where cursor was positioned to the second character instead of the first, after reading a file --- editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor.c b/editor.c index 267cda5..b7083eb 100644 --- a/editor.c +++ b/editor.c @@ -113,7 +113,7 @@ int main(int argc, char** argv) { return -10; } - while (num_of_chars > 1) { + while (num_of_chars > 0) { buffer_left(buffer); num_of_chars--; }