annotate src/GvimExt/GvimExt.reg @ 34854:97b5457962ed v9.1.0296

patch 9.1.0296: regexp: engines do not handle case-folding well Commit: https://github.com/vim/vim/commit/7a27c108e0509f3255ebdcb6558e896c223e4d23 Author: Christian Brabandt <cb@256bit.org> Date: Tue Apr 9 22:53:19 2024 +0200 patch 9.1.0296: regexp: engines do not handle case-folding well Problem: Regex engines do not handle case-folding well Solution: Correctly calculate byte length of characters to skip When the regexp engine compares two utf-8 codepoints case insensitively it may match an adjacent character, because it assumes it can step over as many bytes as the pattern contains. This however is not necessarily true because of case-folding, a multi-byte UTF-8 character can be considered equal to some single-byte value. Let's consider the pattern '?' and the string 's'. When comparing and ignoring case, the single character 's' matches, and since it matches Vim will try to step over the match (by the amount of bytes of the pattern), assuming that since it matches, the length of both strings is the same. However in that case, it should only step over the single byte value 's' so by 1 byte and try to start matching after it again. So for the backtracking engine we need to ensure: - we try to match the correct length for the pattern and the text - in case of a match, we step over it correctly The same thing can happen for the NFA engine, when skipping to the next character to test for a match. We are skipping over the regstart pointer, however we do not consider the case that because of case-folding we may need to adjust the number of bytes to skip over. So this needs to be adjusted in find_match_text() as well. A related issue turned out, when prog->match_text is actually empty. In that case we should try to find the next match and skip this condition. fixes: #14294 closes: #14433 Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 09 Apr 2024 23:00:08 +0200
parents 4635e43f2c6f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
1 REGEDIT4
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
2
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
3 [HKEY_CLASSES_ROOT\CLSID\{51EEE242-AD87-11d3-9C1E-0090278BBD99}]
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
4 @="Vim Shell Extension"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
5 [HKEY_CLASSES_ROOT\CLSID\{51EEE242-AD87-11d3-9C1E-0090278BBD99}\InProcServer32]
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
6 @="gvimext.dll"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
7 "ThreadingModel"="Apartment"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
8
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
9 [HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\gvim]
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
10 @="{51EEE242-AD87-11d3-9C1E-0090278BBD99}"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
11
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
12 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved]
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
13 "{51EEE242-AD87-11d3-9C1E-0090278BBD99}"="Vim Shell Extension"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
14
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
15 [HKEY_LOCAL_MACHINE\Software\Vim\Gvim]
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
16 "path"="gvim.exe"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
17
34057
4635e43f2c6f patch 9.1.0000: Vim 9.1 release
Christian Brabandt <cb@256bit.org>
parents: 29314
diff changeset
18 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Vim 9.1]
4635e43f2c6f patch 9.1.0000: Vim 9.1 release
Christian Brabandt <cb@256bit.org>
parents: 29314
diff changeset
19 "DisplayName"="Vim 9.1: Edit with Vim popup menu entry"
18182
9b6bfce90778 patch 8.1.2086: missing a few changes for the renamed files
Bram Moolenaar <Bram@vim.org>
parents: 13963
diff changeset
20 "UninstallString"="uninstall.exe"