raster pushed a commit to branch master. http://git.enlightenment.org/apps/terminology.git/commit/?id=149d23d48480f91e0dcadeda5653f396f45cd360
commit 149d23d48480f91e0dcadeda5653f396f45cd360 Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com> Date: Fri Aug 15 20:20:15 2014 +0900 re-fix wrodsep to work again and not segv --- src/bin/termio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/termio.c b/src/bin/termio.c index 2974b47..16ed54f 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c @@ -2599,6 +2599,7 @@ _codepoint_is_wordsep(const Eina_Unicode g) }; size_t imax = (sizeof(wordsep) / sizeof(wordsep[0])) - 1, imin = 0; + size_t imaxmax = imax; while (imax >= imin) { @@ -2607,7 +2608,7 @@ _codepoint_is_wordsep(const Eina_Unicode g) if (wordsep[imid] == g) return EINA_TRUE; else if (wordsep[imid] < g) imin = imid + 1; else imax = imid - 1; - if ((imax == imin) || (imid == 0)) break; + if (imax > imaxmax) break; } return EINA_FALSE; } --