• R/O
  • SSH
  • HTTPS

tortoisesvn: Commit


Commit MetaInfo

Revision28533 (tree)
Time2019-03-15 08:34:20
Authorcsware

Log Message

Flash window if search finished the document

Based on TortoiseGit rev. 13b3a882e83bd8e3304d4d83026da774573b574f.

Change Summary

Incremental Difference

--- trunk/src/TortoiseUDiff/MainWindow.cpp (revision 28532)
+++ trunk/src/TortoiseUDiff/MainWindow.cpp (revision 28533)
@@ -1,7 +1,7 @@
11 // TortoiseSVN - a Windows shell extension for easy version control
22
33 // Copyright (C) 2003-2018 - TortoiseSVN
4-// Copyright (C) 2012-2016, 2018 - TortoiseGit
4+// Copyright (C) 2012-2016, 2018-2019 - TortoiseGit
55
66 // This program is free software; you can redistribute it and/or
77 // modify it under the terms of the GNU General Public License
@@ -231,12 +231,30 @@
231231 break;
232232 case IDM_FINDNEXT:
233233 SendEditor(SCI_SEARCHANCHOR);
234- SendEditor(SCI_SEARCHNEXT, m_bMatchCase ? SCFIND_MATCHCASE : 0, (LPARAM)CUnicodeUtils::StdGetUTF8(m_findtext).c_str());
234+ if (SendEditor(SCI_SEARCHNEXT, m_bMatchCase ? SCFIND_MATCHCASE : 0, (LPARAM)CUnicodeUtils::StdGetUTF8(m_findtext).c_str()) == -1)
235+ {
236+ FLASHWINFO fwi;
237+ fwi.cbSize = sizeof(FLASHWINFO);
238+ fwi.uCount = 3;
239+ fwi.dwTimeout = 100;
240+ fwi.dwFlags = FLASHW_ALL;
241+ fwi.hwnd = m_hwnd;
242+ FlashWindowEx(&fwi);
243+ }
235244 SendEditor(SCI_SCROLLCARET);
236245 break;
237246 case IDM_FINDPREV:
238247 SendEditor(SCI_SEARCHANCHOR);
239- SendEditor(SCI_SEARCHPREV, m_bMatchCase ? SCFIND_MATCHCASE : 0, (LPARAM)CUnicodeUtils::StdGetUTF8(m_findtext).c_str());
248+ if (SendEditor(SCI_SEARCHPREV, m_bMatchCase ? SCFIND_MATCHCASE : 0, (LPARAM)CUnicodeUtils::StdGetUTF8(m_findtext).c_str()) == -1)
249+ {
250+ FLASHWINFO fwi;
251+ fwi.cbSize = sizeof(FLASHWINFO);
252+ fwi.uCount = 3;
253+ fwi.dwTimeout = 100;
254+ fwi.dwFlags = FLASHW_ALL;
255+ fwi.hwnd = m_hwnd;
256+ FlashWindowEx(&fwi);
257+ }
240258 SendEditor(SCI_SCROLLCARET);
241259 break;
242260 case IDM_FINDEXIT:
Show on old repository browser