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 ) {