billiob pushed a commit to branch master.

commit 18e97fa8407c1f8aa2b827b2994c452ba33e125f
Author: Boris Faure <[email protected]>
Date:   Sun May 19 00:00:44 2013 +0200

    termio: return NULL when selection is empty
    
    This fixes issues with link detection in backscroll.
---
 src/bin/termio.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/bin/termio.c b/src/bin/termio.c
index 07665a9..27d42ba 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -4182,6 +4182,11 @@ termio_selection_get(Evas_Object *obj, int c1x, int c1y, 
int c2x, int c2y)
      }
    termpty_cellcomp_thaw(sd->pty);
 
+   if (eina_strbuf_length_get(sb) == 0)
+     {
+        eina_strbuf_free(sb);
+        return NULL;
+     }
    s = eina_strbuf_string_steal(sb);
    eina_strbuf_free(sb);
    return s;

-- 

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d

Reply via email to