From 484d85ab0f970d2818d500533e1f1aedeb828890 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sat, 13 Oct 2012 19:33:20 +0200 Subject: [PATCH] getSelections can be 0 This depends on visible selections and not on content of file. So if we have search results on screen this will be more than 0, but if we don't we won't get any link shortcuts --- cre.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cre.cpp b/cre.cpp index ec0a74a6b..fd9c6213d 100644 --- a/cre.cpp +++ b/cre.cpp @@ -418,10 +418,6 @@ static int getPageLinks(lua_State *L) { ldomXRangeList links; ldomXRangeList & sel = doc->text_view->getDocument()->getSelections(); - if ( sel.length() == 0 ) { - return 0; - } - doc->text_view->getCurrentPageLinks( links ); int linkCount = links.length(); if ( linkCount ) {