Check whether the view is valid before trying to access it.
(Fixes issue #515) : Crash in TMerge when copying text


git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/TortoiseMerge@24534 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
Slow check at the end is only needed if the fast part didn't find any non-ANSI chars.

git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/TortoiseMerge@24553 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
Handle utf-16 files that don't have a BOM.
(Fixes issue #520) : TortoiseMerge fails to detect utf-16 without BOM


git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/TortoiseMerge@24555 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
Replace memset with ZeroMemory.

Also, fix a couple of cases where the number of elements was used instead of the number of bytes.

git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/TortoiseMerge@24658 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
Check for an invalid index and bail out if it's invalid.
(Fixes issue #536) : Crash in TortoiseMerge trying to find moved blocks


git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/TortoiseMerge@24670 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
Reduce scope of local variables
Do not reassign local variables before use
Compare values properly of type BOOL and bool

git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/TortoiseMerge@24740 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
Check for valid line indexes.
(Fixes issue #559) : Crash in moved-blocks detection in TortoiseMerge


git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/TortoiseMerge@24767 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
Store the info about moved lines in separate variables rather than misusing the line state for this.
(Fixes issue #570) : moved-blocks detection changes diff blocks


git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/TortoiseMerge@24797 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
Use the proper format type and size specifiers.

Found with Cppcheck.

git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/TortoiseMerge@24808 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
Use the filename alone instead of the full path to get the file icon.
(Fixes issue #573) : Crash applying patch with urls


git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/TortoiseMerge@24813 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
Run our checkyear.js script as a check-commit hook.

git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/TortoiseMerge@24827 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
TortoiseMerge: When searching text, flash window when end of file reached or text not found.
(Updates issue #575) : TortoiseMerge: Support more search functions

git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/TortoiseMerge@24828 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
TortoiseMerge: Double-click word should highlight whole word only.
(Updates issue #576) : TortoiseMerge: Double-click word should highlight whole word only

git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/TortoiseMerge@24829 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
TortoiseMerge: Location bar should highlight whole word only.
(Fixes issue #576) : TortoiseMerge: Double-click word should highlight whole word only

git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/TortoiseMerge@24830 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
TortoiseMerge: LocationBar highlights should respect all options in FindDlg.
(Fixes issue #577) : TortoiseMerge: LocationBar highlights should respect all options in FindDlg

git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/TortoiseMerge@24837 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
Take StringFound() start parameter as both input and output.

git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/TortoiseMerge@24842 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
Tab to space.

git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/TortoiseMerge@24843 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
TortoiseMerge: Count the number of matches in FindDlg.
(Updates issue #575) : TortoiseMerge: Support more search functions

git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/TortoiseMerge@24844 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
TortoiseMerge: Add Status label in FindDlg.
(Updates issue #575) : TortoiseMerge: Support more search functions

git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/TortoiseMerge@24857 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac
TortoiseMerge: Move match count message to FindDlg status bar.
(Updates issue #575) : TortoiseMerge: Support more search functions

git-svn-id: http://tortoisesvn.googlecode.com/svn/trunk/src/TortoiseMerge@24858 4cfb86a4-2c7a-11df-bd14-c1e331e6ceac