Bram Moolenaar
616592e081
patch 8.2.5115: search timeout is overrun with some patterns
...
Problem: Search timeout is overrun with some patterns.
Solution: Check for timeout in more places. Make the flag volatile and
atomic. Use assert_inrange() to see what happened.
2022-06-17 15:17:10 +01:00
Paul Ollis
6574577cac
patch 8.2.5057: using gettimeofday() for timeout is very inefficient
...
Problem: Using gettimeofday() for timeout is very inefficient.
Solution: Set a platform dependent timer. (Paul Ollis, closes #10505 )
2022-06-05 16:55:54 +01:00
Bram Moolenaar
305abc6123
patch 8.2.5036: using two counters for timeout check in NFA engine
...
Problem: Using two counters for timeout check in NFA engine.
Solution: Use only one counter. Tune the counts based on guessing.
2022-05-28 11:08:40 +01:00
Bram Moolenaar
02e8d4e4ff
patch 8.2.5028: syntax regexp matching can be slow
...
Problem: Syntax regexp matching can be slow.
Solution: Adjust the counters for checking the timeout to check about once
per msec. (closes #10487 , closes #2712 )
2022-05-27 15:35:28 +01:00
Christian Brabandt
360da40b47
patch 8.2.4978: no error if engine selection atom is not at the start
...
Problem: No error if engine selection atom is not at the start.
Solution: Give an error. (Christian Brabandt, closes #10439 )
2022-05-18 15:04:02 +01:00
Bram Moolenaar
72bb10df1f
patch 8.2.4693: new regexp does not accept pattern "\%>0v"
...
Problem: new regexp does not accept pattern "\%>0v".
Solution: Do accept digit zero.
2022-04-05 14:00:32 +01:00
Bram Moolenaar
91ff3d4f52
patch 8.2.4688: new regexp engine does not give an error for "\%v"
...
Problem: New regexp engine does not give an error for "\%v".
Solution: Check for a value argument. (issue #10079 )
2022-04-04 18:32:32 +01:00
Bram Moolenaar
b4ad3b0dea
patch 8.2.4649: various formatting problems
...
Problem: Various formatting problems.
Solution: Improve the code formatting.
2022-03-30 10:57:45 +01:00
Bram Moolenaar
b10ff5c1b3
patch 8.2.4592: search continues after giving E1204
...
Problem: Search continues after giving E1204.
Solution: Return failure after giving E1204. (closes #9972 )
2022-03-19 11:31:38 +00:00
zeertzjq
0a4e098f32
patch 8.2.4546: duplicate #undef
...
Problem: Duplicate #undef.
Solution: Remove one #undef. (closes #9932 )
2022-03-11 15:33:53 +00:00
Bram Moolenaar
424bcae1fb
patch 8.2.4273: the EBCDIC support is outdated
...
Problem: The EBCDIC support is outdated.
Solution: Remove the EBCDIC support.
2022-01-31 14:59:41 +00:00
Bram Moolenaar
b2d85e3784
patch 8.2.4029: debugging NFA regexp my crash, cached indent may be wrong
...
Problem: Debugging NFA regexp my crash, cached indent may be wrong.
Solution: Fix some debug warnings in the NFA regexp code. Make sure log_fd
is set when used. Fix breakindent and indent caching. (Christian
Brabandt, closes #9482 )
2022-01-07 16:55:32 +00:00
Bram Moolenaar
d82a47dd04
patch 8.2.4012: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move the last error messages to errors.h.
2022-01-05 20:24:39 +00:00
Bram Moolenaar
9d00e4a814
patch 8.2.4010: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-05 17:49:15 +00:00
Bram Moolenaar
677658ae49
patch 8.2.4008: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-05 16:09:06 +00:00
Bram Moolenaar
a6f7929e62
patch 8.2.4005: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-04 21:30:47 +00:00
Bram Moolenaar
74409f6279
patch 8.2.3970: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2022-01-01 15:58:22 +00:00
Dominique Pelle
af4a61a85d
patch 8.2.3914: various spelling mistakes in comments
...
Problem: Various spelling mistakes in comments.
Solution: Fix the mistakes. (Dominique Pellé, closes #9416 )
2021-12-27 17:21:41 +00:00
Yegappan Lakshmanan
bc404bfb32
patch 8.2.3855: illegal memory access when displaying a blob
...
Problem: Illegal memory access when displaying a blob.
Solution: Append a NUL at the end. (Yegappan Lakshmanan, closes #9372 )
2021-12-19 19:19:31 +00:00
Bram Moolenaar
52797bae17
patch 8.2.3825: various comments could be improved
...
Problem: Various comments could be improved.
Solution: Improve the comments.
2021-12-16 14:45:13 +00:00
Bram Moolenaar
12f3c1b77f
patch 8.2.3749: error messages are everywhere
...
Problem: Error messages are everywhere.
Solution: Move more error messages to errors.h and adjust the names.
2021-12-05 21:46:34 +00:00
Bram Moolenaar
64066b9acd
patch 8.2.3612: using freed memory with regexp using a mark
...
Problem: Using freed memory with regexp using a mark.
Solution: Get the line again after getting the mark position.
2021-11-17 18:22:56 +00:00
Bram Moolenaar
65b6056659
patch 8.2.3409: reading beyond end of line with invalid utf-8 character
...
Problem: Reading beyond end of line with invalid utf-8 character.
Solution: Check for NUL when advancing.
2021-09-07 19:26:53 +02:00
Bram Moolenaar
d8e44476d8
patch 8.2.3197: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move a few more error messages to errors.h.
2021-07-21 22:20:33 +02:00
Bram Moolenaar
e29a27f6f8
patch 8.2.3190: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move error messages to errors.h and give them a clear name.
2021-07-20 21:07:36 +02:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
09f688c33a
patch 8.2.3125: variables are set but not used
...
Problem: Variables are set but not used.
Solution: Move the declarations to the block where they are used.
(closes #8527 )
2021-07-08 18:05:00 +02:00
Bram Moolenaar
04db26b360
patch 8.2.3110: a pattern that matches the cursor position is complicated
...
Problem: A pattern that matches the cursor position is bit complicated.
Solution: Use a dot to indicate the cursor line and column. (Christian
Brabandt, closes #8497 , closes #8179 )
2021-07-05 20:15:23 +02:00
Bram Moolenaar
872bee557e
patch 8.2.2885: searching for \%'> does not match linewise end of line
...
Problem: searching for \%'> does not match linewise end of line. (Tim Chase)
Solution: Match end of line if column is MAXCOL. (closes #8238 )
2021-05-24 22:56:15 +02:00
Bram Moolenaar
df36514a64
patch 8.2.2829: some comments are not correct or clear
...
Problem: Some comments are not correct or clear.
Solution: Adjust the comments. Add test for cursor position.
2021-05-03 20:01:45 +02:00
Bram Moolenaar
0b94e297af
patch 8.2.2716: the equivalent class regexp is missing some characters
...
Problem: The equivalent class regexp is missing some characters.
Solution: Update the list of equivalent characters. (Dominique Pellé,
closes #8029 )
2021-04-05 13:59:53 +02:00
Bram Moolenaar
66c50c5653
patch 8.2.2278: falling back to old regexp engine can some patterns
...
Problem: Falling back to old regexp engine can some patterns.
Solution: Do not fall back once [[:lower:]] or [[:upper:]] is used.
(Christian Brabandt, closes #7572 )
2021-01-02 17:43:49 +01:00
Bram Moolenaar
a3d10a508c
patch 8.2.2181: valgrind warnings for using uninitialized value
...
Problem: Valgrind warnings for using uninitialized value.
Solution: Do not use "start" or "end" unless there is a match.
2020-12-21 18:24:00 +01:00
Bram Moolenaar
ef2dff52de
patch 8.2.2177: pattern "^" does not match if first character is combining
...
Problem: Pattern "^" does not match if the first character in the line is
combining. (Rene Kita)
Solution: Do accept a match at the start of the line. (closes #6963 )
2020-12-21 14:54:32 +01:00
Bram Moolenaar
61e07b2394
patch 8.2.2171: valgrind warning for using uninitialized value
...
Problem: Valgrind warning for using uninitialized value.
Solution: Do not use "startp" or "endp" unless there is a match.
2020-12-20 17:59:53 +01:00
Bram Moolenaar
a7a691cc14
patch 8.2.2121: internal error when using \ze before \zs in a pattern
...
Problem: Internal error when using \ze before \zs in a pattern.
Solution: Check the end is never before the start. (closes #7442 )
2020-12-09 16:36:04 +01:00
Bram Moolenaar
e83cca2911
patch 8.2.1633: some error messages are internal but do not use iemsg()
...
Problem: Some error messages are internal but do not use iemsg().
Solution: Use iemsg(). (Dominique Pellé, closes #6894 )
2020-09-07 18:53:21 +02:00
Bram Moolenaar
71ccd03ee8
patch 8.2.0967: unnecessary type casts for vim_strnsave()
...
Problem: Unnecessary type casts for vim_strnsave().
Solution: Remove the type casts.
2020-06-12 22:59:11 +02:00
Bram Moolenaar
59de417b90
patch 8.2.0938: NFA regexp uses tolower ()to compare ignore-case
...
Problem: NFA regexp uses tolower() to compare ignore-case. (Thayne McCombs)
Solution: Use utf_fold() when possible. (ref. neovim #12456 )
2020-06-09 19:34:54 +02:00
Bram Moolenaar
c5acc0f7fe
patch 8.2.0892: ubsan warns for undefined behavior
...
Problem: Ubsan warns for undefined behavior.
Solution: Use unsigned instead of signed variable. (Dominique Pelle,
closes #6193 )
2020-06-03 18:55:38 +02:00
Bram Moolenaar
a80faa8930
patch 8.2.0559: clearing a struct is verbose
...
Problem: Clearing a struct is verbose.
Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
2020-04-12 19:37:17 +02:00
Bram Moolenaar
f4140488c7
patch 8.2.0260: several lines of code are duplicated
...
Problem: Several lines of code are duplicated.
Solution: Move duplicated code to a function. (Yegappan Lakshmanan,
closes #5330 )
2020-02-15 23:06:45 +01:00
Bram Moolenaar
7c77b34967
patch 8.2.0033: crash when make_extmatch() runs out of memory
...
Problem: Crash when make_extmatch() runs out of memory.
Solution: Check for NULL. (Dominique Pelle, closs #5392 )
2019-12-22 19:40:40 +01:00
Bram Moolenaar
63d9e730f7
patch 8.1.2394: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
2019-12-05 21:10:38 +01:00
Bram Moolenaar
32aa10203b
patch 8.1.2243: typos in comments
...
Problem: Typos in comments.
Solution: Fix the typos. (Dominique Pelle, closes #5160 ) Also adjust
formatting a bit.
2019-11-02 22:54:41 +01:00
Bram Moolenaar
c799fe206e
patch 8.1.1414: alloc() returning "char_u *" causes a lot of type casts
...
Problem: Alloc() returning "char_u *" causes a lot of type casts.
Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to
check the simple allocations.
2019-05-28 23:08:19 +02:00
Bram Moolenaar
51e14387f1
patch 8.1.1393: unnecessary type casts
...
Problem: Unnecessary type casts.
Solution: Remove type casts from alloc() and lalloc() calls. (Mike Williams)
2019-05-25 20:21:28 +02:00
Bram Moolenaar
18a4ba29ae
patch 8.1.1386: unessesary type casts for lalloc()
...
Problem: Unessesary type casts for lalloc().
Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
2019-05-24 19:39:03 +02:00
Bram Moolenaar
c6b1cc967f
patch 8.1.1249: compiler warning for uninitialized variable
...
Problem: Compiler warning for uninitialized variable.
Solution: Initialize it. (Christian Brabandt)
2019-05-03 11:21:05 +02:00
Bram Moolenaar
abab0b0fdd
patch 8.1.1086: too many curly braces
...
Problem: Too many curly braces.
Solution: Remove curly braces where they are not needed. (Hirohito Higashi,
closes #3982 )
2019-03-30 18:47:01 +01:00
Bram Moolenaar
cd62512c55
patch 8.1.0973: pattern with syntax error gives threee error messages
...
Problem: Pattern with syntax error gives threee error messages. (Kuang-che
Wu)
Solution: Remove outdated internal error. Don't fall back to other engine
after an error.
2019-02-22 17:29:43 +01:00