Luuk van Baal
7bbb0f357e
patch 9.1.1136: Match highlighting marks a buffer region as changed
...
Problem: Match highlighting marks a buffer region to be redrawn as if
its buffer text was changed, unnecessarily invoking syntax code.
Solution: Set the `w_redraw_top/bot` variables instead of the b_mod_* ones
(Luuk van Baal)
closes : #16697
Signed-off-by: Luuk van Baal <luukvbaal@gmail.com >
Signed-off-by: Christian Brabandt <cb@256bit.org >
2025-02-22 09:19:04 +01:00
Christian Brabandt
f7d31adcc2
patch 9.1.0340: Problem: Error with matchaddpos() and empty list
...
Problem: Error with matchaddpos() and empty list
(@rickhow)
Solution: Return early for an empty list
fixes : #14525
closes : #14563
Signed-off-by: Christian Brabandt <cb@256bit.org >
2024-04-16 22:23:17 +02:00
Yegappan Lakshmanan
e857598896
patch 9.0.1196: code is indented more than necessary
...
Problem: Code is indented more than necessary.
Solution: Use an early return where it makes sense. (Yegappan Lakshmanan,
closes #11813 )
2023-01-14 12:32:28 +00:00
Bram Moolenaar
88456cd3c4
patch 9.0.0904: various comment and indent flaws
...
Problem: Various comment and indent flaws.
Solution: Improve comments and indenting.
2022-11-18 22:14:09 +00:00
Bram Moolenaar
9f573a8df0
patch 9.0.0622: matchaddpos() can get slow when adding many matches
...
Problem: matchaddpos() can get slow when adding many matches.
Solution: Update the next available match ID when manually picking an ID and
remove check if the available ID can be used. (idea by Rick Howe)
2022-09-29 13:50:08 +01:00
Bram Moolenaar
50faf02f43
patch 9.0.0620: matchaddpos() can only add up to 8 matches
...
Problem: matchaddpos() can only add up to 8 matches.
Solution: Allocate the array of positions. (closes #11248 )
2022-09-29 12:50:17 +01:00
Bram Moolenaar
d83392a43a
patch 9.0.0345: error message for list argument could be clearer
...
Problem: Error message for list argument could be clearer.
Solution: Include the argument number. (Yegappan Lakshmanan, closes #11027 )
2022-09-01 12:22:46 +01:00
Bram Moolenaar
a4d158b3c8
patch 9.0.0206: redraw flags are not named specifically
...
Problem: Redraw flags are not named specifically.
Solution: Prefix "UPD_" to the flags, for UPDate_screen().
2022-08-14 14:17:45 +01:00
Bram Moolenaar
d61efa50f8
patch 9.0.0063: too many type casts for dict_get functions
...
Problem: Too many type casts for dict_get functions.
Solution: Change the key argument from "char_u *" to "char *".
2022-07-23 09:52:04 +01:00
Bram Moolenaar
1f89abf69d
patch 8.2.5062: Coverity warns for dead code
...
Problem: Coverity warns for dead code.
Solution: Remove the dead code.
2022-06-06 10:07:01 +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
368137aa52
patch 8.2.5047: CurSearch highlight is often wrong
...
Problem: CurSearch highlight is often wrong.
Solution: Remember the last highlighted position and redraw when needed.
2022-05-31 13:43:12 +01:00
zeertzjq
8279cfe499
patch 8.2.4812: unused struct item
...
Problem: Unused struct item.
Solution: Remove "lines" match_T. Simplify the code. (closes #10256 )
2022-04-23 12:05:51 +01:00
Bram Moolenaar
9b36750640
patch 8.2.4805: CurSearch used for all matches in current line
...
Problem: CurSearch used for all matches in current line.
Solution: Don't use the non-zero line count. (closes #10247 )
2022-04-22 20:07:21 +01:00
Bram Moolenaar
693ccd1160
patch 8.2.4759: CurSearch highlight does not work for multi-line match
...
Problem: CurSearch highlight does not work for multi-line match.
Solution: Check cursor position before adjusting columns. (closes #10133 )
2022-04-16 12:04:37 +01:00
LemonBoy
a43993897a
patch 8.2.4724: current instance of last search pattern not easily spotted
...
Problem: Current instance of last search pattern not easily spotted.
Solution: Add CurSearch highlighting. (closes #10133 )
2022-04-09 21:04:08 +01:00
Yegappan Lakshmanan
4829c1c9e9
patch 8.2.4683: verbose check with dict_find() to see if a key is present
...
Problem: Verbose check with dict_find() to see if a key is present.
Solution: Add dict_has_key(). (Yegappan Lakshmanan, closes #10074 )
2022-04-04 15:16:54 +01:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
420fabcd4f
patch 8.2.4241: some type casts are redundant
...
Problem: Some type casts are redundant.
Solution: Remove the type casts. (closes #9643 )
2022-01-28 15:28:04 +00:00
Bram Moolenaar
bb8cac56d9
patch 8.2.4011: test fails because of changed error number
...
Problem: Test fails because of changed error number.
Solution: Restore old duplicate error message.
2022-01-05 18:16:53 +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
9a846fbaa5
patch 8.2.3977: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-01 21:59:18 +00:00
Bram Moolenaar
3a846e6bca
patch 8.2.3972: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move the last errors from globals.h to errors.h.
2022-01-01 16:21:00 +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
Bram Moolenaar
460ae5dfca
patch 8.2.3967: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2022-01-01 14:19:49 +00:00
Bram Moolenaar
436b5adc97
patch 8.2.3961: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2021-12-31 22:49:24 +00:00
Bram Moolenaar
94fb8274ca
patch 8.2.3940: match highlight disappears when doing incsearch for ":s/pat"
...
Problem: Match highlight disappears when doing incsearch for ":s/pat".
Solution: Only use line limit for incsearch highlighting. (closes #9425 )
2021-12-29 19:22:44 +00:00
Bram Moolenaar
0c359af5c0
patch 8.2.3698: match highlighting continues over breakindent
...
Problem: Match highlighting continues over breakindent.
Solution: Stop before the end column. (closes #9242 )
2021-11-29 19:18:57 +00:00
Yegappan Lakshmanan
4490ec4e83
patch 8.2.3229: Vim9: runtime and compile time type checks are not the same
...
Problem: Vim9: runtime and compile time type checks are not the same.
Solution: Add more runtime type checks for builtin functions. (Yegappan
Lakshmanan, closes #8646 )
2021-07-27 22:00:44 +02:00
Yegappan Lakshmanan
0ad871dc4d
patch 8.2.3206: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8611 )
2021-07-23 20:37:56 +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
Yegappan Lakshmanan
83494b4ac6
patch 8.2.3188: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks, also at runtime. (Yegappan
Lakshmanan, closes #8587 )
2021-07-20 17:51:51 +02:00
Bram Moolenaar
41f0895c6e
patch 8.2.2542: highlight of char beyond line end is not correct
...
Problem: Highlight of char beyond line end is not correct. (Chuan Wei Foo)
Solution: Fix counting NUL as one cell. Draw one more character if the EOL
is part of the match. (closes #7883 )
2021-02-22 22:13:49 +01:00
Bram Moolenaar
451c2e3536
patch 8.2.1460: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more messages into errors.h.
2020-08-15 16:33:28 +02:00
Bram Moolenaar
8930caaa1a
patch 8.2.1280: Ex command error cannot contain an argument
...
Problem: Ex command error cannot contain an argument.
Solution: Add ex_errmsg() and translate earlier. Use e_trailing_arg where
possible.
2020-07-23 16:37:03 +02:00
Bram Moolenaar
06cf97e714
patch 8.2.1078: highlight and match functionality together in one file
...
Problem: Highlight and match functionality together in one file.
Solution: Move match functionality to a separate file. (Yegappan Lakshmanan,
closes #6352 )
2020-06-28 13:17:26 +02:00