Skip to content

Commit

Permalink
正規表現キーワードのURLで0文字マッチすると無限ループになる問題に対処
Browse files Browse the repository at this point in the history
  • Loading branch information
beru committed Sep 1, 2019
1 parent 34c6f3d commit 832c104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sakura_core/view/CEditView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,7 @@ bool CEditView::IsCurrentPositionURL(
&& (i == 0 || !IS_KEYWORD_CHAR(pLine[i - 1])) // 2009.05.22 ryoji CColor_Url::BeginColor()と同条件に
&& IsURL(&pLine[i], (Int)(nLineLen - i), &nUrlLen) ); /* 指定アドレスがURLの先頭ならばTRUEとその長さを返す */
}
if( bMatch ){
if( bMatch && nUrlLen > 0 ){
if( i <= ptXY.GetX2() && ptXY.GetX2() < i + CLogicInt(nUrlLen) ){
/* URLを返す場合 */
if( pwstrURL ){
Expand Down

0 comments on commit 832c104

Please sign in to comment.