Commit b02a1950 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

cosmetic fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3485 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent a5f833de
Showing with 2 additions and 4 deletions
+2 -4
......@@ -2403,10 +2403,8 @@ void edit_draw(const filestruct *fileptr, const char *converted, int
_("Refusing zero-length regex match"));
} else if (startmatch.rm_so < endpos &&
startmatch.rm_eo > startpos) {
if (startmatch.rm_so <= startpos)
x_start = 0;
else
x_start = strnlenpt(fileptr->data,
x_start = (startmatch.rm_so <= startpos) ? 0 :
strnlenpt(fileptr->data,
startmatch.rm_so) - start;
index = actual_x(converted, x_start);
......
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