• R/O
  • SSH
  • HTTPS

tortoisesvn: コミット


コミットメタ情報

リビジョン28536 (tree)
日時2019-03-15 20:28:55
作者csware

ログメッセージ

Follow up for r28533

変更サマリ

差分

--- trunk/src/TortoiseUDiff/MainWindow.cpp (revision 28535)
+++ trunk/src/TortoiseUDiff/MainWindow.cpp (revision 28536)
@@ -156,7 +156,16 @@
156156 SendEditor(SCI_SEARCHANCHOR);
157157 m_bMatchCase = !!wParam;
158158 m_findtext = (LPCTSTR)lParam;
159- SendEditor(SCI_SEARCHNEXT, m_bMatchCase ? SCFIND_MATCHCASE : 0, (LPARAM)CUnicodeUtils::StdGetUTF8(m_findtext).c_str());
159+ if (SendEditor(SCI_SEARCHNEXT, m_bMatchCase ? SCFIND_MATCHCASE : 0, (LPARAM)CUnicodeUtils::StdGetUTF8(m_findtext).c_str()) == -1)
160+ {
161+ FLASHWINFO fwi;
162+ fwi.cbSize = sizeof(FLASHWINFO);
163+ fwi.uCount = 3;
164+ fwi.dwTimeout = 100;
165+ fwi.dwFlags = FLASHW_ALL;
166+ fwi.hwnd = m_hwnd;
167+ FlashWindowEx(&fwi);
168+ }
160169 SendEditor(SCI_SCROLLCARET);
161170 }
162171 break;
@@ -165,7 +174,17 @@
165174 SendEditor(SCI_SEARCHANCHOR);
166175 m_bMatchCase = !!wParam;
167176 m_findtext = (LPCTSTR)lParam;
168- SendEditor(SCI_SEARCHPREV, m_bMatchCase ? SCFIND_MATCHCASE : 0, (LPARAM)CUnicodeUtils::StdGetUTF8(m_findtext).c_str());
177+ if (SendEditor(SCI_SEARCHPREV, m_bMatchCase ? SCFIND_MATCHCASE : 0, (LPARAM)CUnicodeUtils::StdGetUTF8(m_findtext).c_str()) == -1)
178+ {
179+ FLASHWINFO fwi;
180+ fwi.cbSize = sizeof(FLASHWINFO);
181+ fwi.uCount = 3;
182+ fwi.dwTimeout = 100;
183+ fwi.dwFlags = FLASHW_ALL;
184+ fwi.hwnd = m_hwnd;
185+ FlashWindowEx(&fwi);
186+ }
187+
169188 SendEditor(SCI_SCROLLCARET);
170189 }
171190 break;
旧リポジトリブラウザで表示