fix segfault if urlhandler is not defined in golded.cfg
This commit is contained in:
@@ -10,6 +10,12 @@ _____________________________________________________________________________
|
|||||||
<20><><EFBFBD><EFBFBD>⪨ <20><><EFBFBD> GoldED+ 1.1.5, /snapshot/
|
<20><><EFBFBD><EFBFBD>⪨ <20><><EFBFBD> GoldED+ 1.1.5, /snapshot/
|
||||||
_____________________________________________________________________________
|
_____________________________________________________________________________
|
||||||
|
|
||||||
|
! <20> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> URLHANDLER <20> <20><><EFBFBD>뢠<EFBFBD><EBA2A0><EFBFBD><EFBFBD> READpeekURLs, Golded+ ⥯<><E2A5AF><EFBFBD> <20><>
|
||||||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> segmentation fault.
|
||||||
|
|
||||||
|
+ <20><><EFBFBD><EFBFBD><EFBFBD> <20><>४⨢<E0A5AA> 䠩<><E4A0A9> goldlang.cfg "IL_PEEKINFONOHANDLER" (ᮮ<>饭<EFBFBD><E9A5AD> " URL
|
||||||
|
handler are not defined in config file! ")
|
||||||
|
|
||||||
! <20><>७<EFBFBD><E0A5AD><EFBFBD><EFBFBD>祭<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: Ctrl-Backspace ⥯<><E2A5AF><EFBFBD> 㤠<><E3A4A0><EFBFBD><EFBFBD> ᨬ<><E1A8AC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>, Ctrl-W
|
! <20><>७<EFBFBD><E0A5AD><EFBFBD><EFBFBD>祭<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: Ctrl-Backspace ⥯<><E2A5AF><EFBFBD> 㤠<><E3A4A0><EFBFBD><EFBFBD> ᨬ<><E1A8AC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>, Ctrl-W
|
||||||
㤠<><E3A4A0><EFBFBD><EFBFBD> <><E1ABAE> <20><><EFBFBD><EFBFBD><EFBFBD>. (<28><>室 <20><><EFBFBD><EFBFBD> <20> <20><>।<EFBFBD><E0A5A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ctrl-Backspace <20> Linux.)
|
㤠<><E3A4A0><EFBFBD><EFBFBD> <><E1ABAE> <20><><EFBFBD><EFBFBD><EFBFBD>. (<28><>室 <20><><EFBFBD><EFBFBD> <20> <20><>।<EFBFBD><E0A5A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ctrl-Backspace <20> Linux.)
|
||||||
|
|
||||||
|
@@ -10,7 +10,13 @@ ______________________________________________________________________
|
|||||||
Notes for GoldED+ 1.1.5, /snapshot/
|
Notes for GoldED+ 1.1.5, /snapshot/
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
|
|
||||||
! Keyboard shortcats is chnged: now Ctrl-Backspace deletes char to
|
! If not defined any URLHANDLER and key "READpeekURLs" is pressed,
|
||||||
|
Golded+ does not trap now (segmentation fault fixed).
|
||||||
|
|
||||||
|
+ New token IL_PEEKINFONOHANDLER for goldlang.cfg (message
|
||||||
|
" URL handler are not defined in config file! "
|
||||||
|
|
||||||
|
! Keyboard shortcats is changed: now Ctrl-Backspace deletes char to
|
||||||
left and Ctrl-W deletes word to left. (Workaround to Ctrl-Backspace
|
left and Ctrl-W deletes word to left. (Workaround to Ctrl-Backspace
|
||||||
detection bug in Linux.)
|
detection bug in Linux.)
|
||||||
|
|
||||||
|
@@ -721,6 +721,13 @@ static bool PeekURLCmp(const std::string &a, const std::string b)
|
|||||||
|
|
||||||
void ReadPeekURLs(GMsg* msg)
|
void ReadPeekURLs(GMsg* msg)
|
||||||
{
|
{
|
||||||
|
if( CFG->urlhandler.empty() )
|
||||||
|
{
|
||||||
|
w_info(LNG->PeekInfoNoHandler);
|
||||||
|
waitkeyt(10000);
|
||||||
|
w_info(NULL);
|
||||||
|
return;
|
||||||
|
}
|
||||||
w_info(LNG->Wait);
|
w_info(LNG->Wait);
|
||||||
|
|
||||||
// Scan the current msg for urls
|
// Scan the current msg for urls
|
||||||
|
Reference in New Issue
Block a user