From 8ef293cd278986878ba21237e16677b8f64c08cb Mon Sep 17 00:00:00 2001 From: faissaloo Date: Mon, 29 Aug 2016 12:23:36 +0100 Subject: [PATCH 16/20] Fixes incorrect hardwrap behaviour --- src/winio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/winio.c b/src/winio.c index 015deba..fbf6713 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2688,7 +2688,7 @@ int update_line(filestruct *fileptr, size_t index) if (!ISSET(SOFTWRAP)) { #endif if (page_start > 0) - mvwaddch(edit, line, margin - 1, '$'); + mvwaddch(edit, line, margin, '$'); if (strlenpt(fileptr->data) > page_start + COLS - margin) mvwaddch(edit, line, COLS - 1, '$'); #ifndef NANO_TINY -- 2.7.4