billiob pushed a commit to branch master.

commit ba9467d780ecba5e9bd3bdee59de2109212a3b31
Author: Boris Faure <[email protected]>
Date:   Tue Jun 4 23:08:05 2013 +0200

    termiolink: minor optimization
---
 src/bin/termiolink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/termiolink.c b/src/bin/termiolink.c
index 83ba176..90c999d 100644
--- a/src/bin/termiolink.c
+++ b/src/bin/termiolink.c
@@ -107,8 +107,8 @@ _termio_link_find(Evas_Object *obj, int cx, int cy,
    x1 = x2 = cx;
    y1 = y2 = cy;
    termio_size_get(obj, &w, &h);
-   sc = termio_scroll_get(obj);
    if ((w <= 0) || (h <= 0)) return NULL;
+   sc = termio_scroll_get(obj);
    for (;;)
      {
         s = termio_selection_get(obj, x1, y1 - sc, x2, y2 - sc, &len);

-- 

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j

Reply via email to