Commit 97896d30 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

moving: use the correct formula for pushing the index forward

This helps to fix https://savannah.gnu.org/bugs/?51787

.
Correction-by: default avatarDavid Lawrence Ramsey <pooka109@gmail.com>
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
...@@ -70,8 +70,8 @@ size_t proper_x(const char *text, size_t leftedge, size_t column) ...@@ -70,8 +70,8 @@ size_t proper_x(const char *text, size_t leftedge, size_t column)
size_t index = actual_x(text, column); size_t index = actual_x(text, column);
#ifndef NANO_TINY #ifndef NANO_TINY
if (ISSET(SOFTWRAP) && text[index] == '\t' && if (ISSET(SOFTWRAP) && text[index] == '\t' && leftedge % tabsize != 0 &&
column < leftedge + leftedge % tabsize) column < leftedge + tabsize)
index++; index++;
#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