From de8e3bb7b6fedc0554cee20834001dd4a739cd88 Mon Sep 17 00:00:00 2001 From: Nick Hanley Date: Wed, 16 Nov 2022 13:28:50 -0500 Subject: fix miscellaneous spelling mistakes --- view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'view.c') diff --git a/view.c b/view.c index 74967dc..2788d85 100644 --- a/view.c +++ b/view.c @@ -103,7 +103,7 @@ static Cell cell_unused; /* move visible viewport n-lines up/down, redraws the view but does not change * cursor position which becomes invalid and should be corrected by calling - * view_cursor_to. the return value indicates wether the visible area changed. + * view_cursor_to. the return value indicates whether the visible area changed. */ static bool view_viewport_up(View *view, int n); static bool view_viewport_down(View *view, int n); @@ -316,7 +316,7 @@ bool view_coord_get(View *view, size_t pos, Line **retline, int *retrow, int *re return true; } -/* move the cursor to the character at pos bytes from the begining of the file. +/* move the cursor to the character at pos bytes from the beginning of the file. * if pos is not in the current viewport, redraw the view to make it visible */ void view_cursor_to(View *view, size_t pos) { view_cursors_to(view->selection, pos); -- cgit v1.2.3