Commit eb88ad98 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: use a slightly faster comparison

parent 9fa95a36
Showing with 1 addition and 1 deletion
+1 -1
...@@ -2323,7 +2323,7 @@ void edit_draw(filestruct *fileptr, const char *converted, int ...@@ -2323,7 +2323,7 @@ void edit_draw(filestruct *fileptr, const char *converted, int
if (margin > 0) { if (margin > 0) {
wattron(edit, interface_color_pair[LINE_NUMBER]); wattron(edit, interface_color_pair[LINE_NUMBER]);
#ifndef NANO_TINY #ifndef NANO_TINY
if (ISSET(SOFTWRAP) && (startpos / editwincols > 0)) if (ISSET(SOFTWRAP) && startpos >= editwincols)
mvwprintw(edit, line, 0, "%*s", margin - 1, " "); mvwprintw(edit, line, 0, "%*s", margin - 1, " ");
else else
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment