Repository navigation
インクリメンタルサーチを始められなかったとき、ビューの検索オプションを書き換えない - #2874
Merged
berryzplus merged 1 commit intoNov 18, 2026
Merged
Conversation
berryzplus
reviewed
Nov 18, 2026
berryzplus
left a comment
Contributor
There was a problem hiding this comment.
対応ありがとうございます。
(SonarQube完了待ち。)
| m_sCurSearchOption.bRegularExp = true; | ||
| m_sCurSearchOption.bLoHiCase = false; | ||
| sSearchOption.bRegularExp = true; | ||
| sSearchOption.bLoHiCase = false; |
Contributor
There was a problem hiding this comment.
これと同じ対応をしたほうがよいコードが、結構ある認識です。
「新しい処理を追加するときはプロジェクト内の似た処理を探して合わせる」がプログラマーの良識なので、仕方ないことだと思うんですが。
|
berryzplus
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



fix #2867
CEditView::ISearchEnter()は、正規表現や Migemo が使えるかを調べる前に、共有データの検索オプションをビューに写していました。使えずに
returnすると、検索パターンは作り直されず、色分けも止まらないので、ビューの検索オプションと色分けに使う検索パターンが食い違ったままになり、次の描き直しで落ちることがありました。変更内容
共有データの検索オプションをローカル変数に写し、
switchの中ではローカル変数だけを書き換えます。switchを抜けたところ(使えると分かった後)で、ビューのm_sCurSearchOptionに写します。returnする 4 か所(正規表現 1、Migemo 3)では、ビューの検索オプションが変わらなくなります使えるときの動きは変わりません
SONAR QUBE は問題ありませんでした。
テスト
view/test-editview-isearch.cppを足しました(EditViewISearchTestの 2 件とカバレッジ対応)EditViewISearchTest.*の 2 件が成功。直す前は 2 件とも落ちることを確かめました関連 issue, PR
CSearchAgent::SearchString()・CSearchStringPattern::SetPattern())を作り直す #2865