]> git.wh0rd.org Git - nano.git/commitdiff
cosmetic fix
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Mon, 8 May 2006 16:25:12 +0000 (16:25 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Mon, 8 May 2006 16:25:12 +0000 (16:25 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3485 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/winio.c

index de0c0cc2a35633175eceb5be133972afdab6b67b..62875e69e2c1ef40ae6e2c3243c2174d09402f63 100644 (file)
@@ -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);