Sam-programs
d1c3ef1f47
patch 9.0.2133: Cannot detect overstrike mode in Cmdline mode
...
Problem: Cannot detect overstrike mode in Cmdline mode
Solution: Make mode() return "cr" for overstrike
closes : #13569
Signed-off-by: Sam-programs <None>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-11-27 22:22:51 +01:00
Ernie Rael
2b0882fa65
patch 9.0.2124: INT overflow detection logic can be simplified
...
Problem: INT overflow logic can be simplified
Solution: introduce trim_to_int() function
closes : #13556
Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-11-23 20:33:05 +01:00
Christian Brabandt
22cbc8a4e1
patch 9.0.2114: overflow detection not accurate when adding digits
...
Problem: overflow detection not accurate when adding digits
Solution: Use a helper function
Use a helper function to better detect overflows before adding integer
digits to a long or an integer variable respectively. Signal the
overflow to the caller function.
closes : #13539
Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Michael Henry <vim@drmikehenry.com>
Signed-off-by: Ernie Rael <errael@raelity.com>
2023-11-19 10:47:21 +01:00
Christian Brabandt
73b2d3790c
patch 9.0.2111: [security]: overflow in get_number
...
Problem: [security]: overflow in get_number
Solution: Return 0 when the count gets too large
[security]: overflow in get_number
When using the z= command, we may overflow the count with values larger
than MAX_INT. So verify that we do not overflow and in case when an
overflow is detected, simply return 0
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-11-16 22:04:38 +01:00
h-east
71ebf3baca
patch 9.0.1855: mode() doesn't indicate command line for terminal
...
Problem: mode() doesn't indicate command line for terminal
Solution: make it return 'ct' for command-line from Terminal mode
closes : #6265
closes : #13017
closes : #13018
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: h-east <h.east.727@gmail.com>
2023-09-03 17:12:55 +02:00
zeertzjq
bfe377b8f2
patch 9.0.1729: screenpos() wrong when w_skipcol and cpoptions+=n
...
Problem: screenpos() wrong result with w_skipcol and cpoptions+=n
Solution: Use adjust_plines_for_skipcol() instead of subtracting
w_skipcol.
closes : #12625
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-08-17 22:58:53 +02:00
ichizok
378447fc18
patch 9.0.1544: recent glibc marks sigset() as a deprecated
...
Problem: Recent glibc marks sigset() as a deprecated.
Solution: Use sigaction() in mch_signal() if possible. (Ozaki Kiichi,
closes #12373 )
2023-05-11 22:25:42 +01:00
Yegappan Lakshmanan
a23a11b5bf
patch 9.0.1336: functions without arguments are not always declared properly
...
Problem: Functions without arguments are not always declared properly.
Solution: Use "(void)" instead of "()". (Yegappan Lakshmanan, closes #12031 )
2023-02-21 14:27:41 +00:00
K.Takata
ce3189d56e
patch 9.0.1313: some settings use the current codepage instead of 'encoding'
...
Problem: Some settings use the current codepage instead of 'encoding'.
Solution: Adjust how options are initialized. (Ken Takata, closes #11992 )
2023-02-15 19:13:43 +00:00
zeertzjq
0ef9a5c094
patch 9.0.1215: using isalpha() adds dependency on current locale
...
Problem: Using isalpha() adds dependency on current locale.
Solution: Do not use isalpha() for recognizing a URL or the end of an Ex
command. (closes #11835 )
2023-01-17 21:38:25 +00: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
61c4b04799
patch 9.0.0788: ModeChanged autocmd not executed when Visual ends with CTRL-C
...
Problem: ModeChanged autocmd not executed when Visual mode is ended with
CTRL-C.
Solution: Do not trigger the autocmd when got_int is set. (closes #11394 )
2022-10-18 15:10:11 +01:00
Bram Moolenaar
c9dc03fff5
patch 9.0.0451: virtual text "above" does not work with 'nowrap'
...
Problem: Virtual text "above" does not work with 'nowrap'.
Solution: Do wrap the line after. (closes #11084 )
2022-09-12 17:51:07 +01:00
Bram Moolenaar
13608d851a
patch 9.0.0318: clearing screen causes flicker
...
Problem: Clearing screen causes flicker.
Solution: Do not clear but redraw in more cases. Add () to "wait_return".
2022-08-29 15:06:50 +01:00
Bram Moolenaar
5ff595d9db
patch 9.0.0284: using static buffer for multiple completion functions
...
Problem: Using static buffer for multiple completion functions.
Solution: Use one buffer in expand_T.
2022-08-26 22:36:41 +01:00
Bram Moolenaar
471c0fa3ee
patch 9.0.0245: mechanism to prevent recursive screen updating is incomplete
...
Problem: Mechanism to prevent recursive screen updating is incomplete.
Solution: Add "redraw_not_allowed" and set it in build_stl_str_hl().
(issue #10952 )
2022-08-22 15:19:16 +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
49a90792d9
patch 9.0.0179: cursor pos wrong with wrapping virtual text in empty line
...
Problem: Cursor position wrong with wrapping virtual text in empty line.
Solution: Adjust handling of an empty line. (closes #10875 )
2022-08-09 18:25:23 +01:00
Bram Moolenaar
4d91d347e6
patch 9.0.0151: a "below" aligned text property does not work with 'nowrap'
...
Problem: A "below" aligned text property does not work with 'nowrap'.
Solution: Start a new screen line to display the virtual text.
(closes #10851 )
2022-08-06 13:48:20 +01:00
Bram Moolenaar
7f9969c559
patch 9.0.0067: cannot show virtual text
...
Problem: Cannot show virtual text.
Solution: Initial changes for virtual text support, using text properties.
2022-07-25 18:13:54 +01:00
Bram Moolenaar
022f9ef16c
patch 9.0.0028: MS-Windows: tests fail if there is a "runtime" directory
...
Problem: MS-Windows: tests fail if there is a stray "runtime" directory.
Solution: Only use a "runtime" directory if it contains "defaults.vim".
2022-07-02 17:36:31 +01:00
Bram Moolenaar
944cc9ceba
patch 8.2.5170: tiny issues
...
Problem: Tiny issues.
Solution: Tiny improvements.
2022-06-27 22:17:37 +01:00
Yegappan Lakshmanan
a34b4460c2
patch 8.2.5077: various warnings from clang on MS-Windows
...
Problem: Various warnings from clang on MS-Windows.
Solution: Avoid the warnings. (Yegappan Lakshmanan, closes #10553 )
2022-06-11 10:43:26 +01:00
Bram Moolenaar
6ed545e797
patch 8.2.4928: various white space and cosmetic mistakes
...
Problem: Various white space and cosmetic mistakes.
Solution: Change spaces to tabs, improve comments.
2022-05-09 20:09:23 +01:00
Bram Moolenaar
249591057b
patch 8.2.4911: the mode #defines are not clearly named
...
Problem: The mode #defines are not clearly named.
Solution: Prepend MODE_. Renumber them to put the mapped modes first.
2022-05-07 20:01:16 +01:00
zeertzjq
590f365f91
patch 8.2.4845: duplicate code
...
Problem: Duplicate code.
Solution: Move code below if/else. (closes #10314 )
2022-04-29 11:29:54 +01:00
Bram Moolenaar
a9549c9e8f
patch 8.2.4773: build failure without the +eval feature
...
Problem: Build failure without the +eval feature.
Solution: Use other error message. Avoid warnings.
2022-04-17 14:18:11 +01:00
Bram Moolenaar
3df8f6e353
patch 8.2.4772: old Coverity warning for not checking ftell() return value
...
Problem: Old Coverity warning for not checking ftell() return value.
Solution: Check return value of fseek() and ftell().
2022-04-17 14:01:51 +01:00
Bram Moolenaar
092e09cba7
patch 8.2.4756: build error without the +eval feature
...
Problem: Build error without the +eval feature.
Solution: Adjust #ifdefs.
2022-04-15 23:29:23 +01:00
LemonBoy
7714231bb5
patch 8.2.4754: using cached values after unsetting some environment variables
...
Problem: Still using cached values after unsetting some known environment
variables.
Solution: Take care of the side effects. (closes #10194 )
2022-04-15 20:50:46 +01:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
b836658a04
patch 8.2.4750: small pieces of dead code
...
Problem: Small pieces of dead code.
Solution: Remove the dead code. (Goc Dundar, closes #10190 ) Rename the
qftf_cb struct member to avoid confusion.
2022-04-14 20:43:56 +01:00
Bram Moolenaar
aae9762b2c
patch 8.2.4745: using wrong flag for using bell in the terminal
...
Problem: Using wrong flag for using bell in the terminal.
Solution: Change to use BO_TERM.
2022-04-13 14:28:07 +01:00
LemonBoy
2bf52dd065
patch 8.2.4723: the ModeChanged autocmd event is inefficient
...
Problem: The ModeChanged autocmd event is inefficient.
Solution: Avoid allocating memory. (closes #10134 ) Rename
trigger_modechanged() to may_trigger_modechanged().
2022-04-09 18:17:34 +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
Dominique Pelle
748b308eeb
patch 8.2.4038: various code not used when features are disabled
...
Problem: Various code not used when features are disabled.
Solution: Add #ifdefs. (Dominique Pellé, closes #9491 )
2022-01-08 12:41:16 +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
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
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
Bram Moolenaar
40bcec1bac
patch 8.2.3750: error messages are everywhere
...
Problem: Error messages are everywhere.
Solution: Move more error messages to errors.h and adjust the names.
2021-12-05 22:19:27 +00:00
Bram Moolenaar
23bdef2571
patch 8.2.3738: screen is cleared when a FocusLost autocommand triggers
...
Problem: Screen is cleared when a FocusLost autocommand triggers.
Solution: Do not redraw when at the hit-enter or more prompt. (closes #9274 )
2021-12-04 17:20:27 +00:00
Bram Moolenaar
3075a45592
patch 8.2.3609: internal error when ModeChanged is triggered recursively
...
Problem: Internal error when ModeChanged is triggered when v:event is
already in use.
Solution: Save and restore v:event if needed.
2021-11-17 15:51:52 +00:00
=?UTF-8?q?Magnus=20Gro=C3=9F?=
25def2c8b8
patch 8.2.3555: ModeChanged is not triggered on every mode change
...
Problem: ModeChanged is not triggered on every mode change.
Solution: Also trigger on minor mode changes. (Maguns Gross, closes #8999 )
2021-10-22 18:56:39 +01:00
itchyny
94e7d345c1
patch 8.2.3551: checking first character of url twice
...
Problem: Checking first character of url twice.
Solution: Only check once. (closes #9026 )
2021-10-21 18:01:13 +01:00
zeertzjq
cc8cd44533
patch 8.2.3466: completion submode not indicated for virtual replace
...
Problem: Completion submode not indicated for virtual replace.
Solution: Add submode to "Rv". (closes #8945 )
2021-10-03 15:19:14 +01:00
Bram Moolenaar
d85931e673
patch 8.2.3462: ModeChanged only uses one character for new_mode and old_mode
...
Problem: The ModeChanged event only uses one character for the new_mode and
old_mode values.
Solution: Pass one as first argument to mode(). (issue #8856 )
2021-10-02 16:55:39 +01:00
Bram Moolenaar
72406a4bd2
patch 8.2.3461: cannot distinguish Normal and Terminal-Normal mode
...
Problem: Cannot distinguish Normal and Terminal-Normal mode.
Solution: Make mode() return "nt" for Terminal-Normal mode. (issue #8856 )
2021-10-02 16:34:55 +01:00
=?UTF-8?q?Magnus=20Gro=C3=9F?=
f1e8876fa2
patch 8.2.3430: no generic way to trigger an autocommand on mode change
...
Problem: No generic way to trigger an autocommand on mode change.
Solution: Add the ModeChanged autocommand event. (Magnus Gross, closes #8856 )
2021-09-12 13:39:55 +02:00
zeertzjq
eaf3f36168
patch 8.2.3236: mode() does not indicate using CTRL-O in Select mode
...
Problem: mode() does not indicate using CTRL-O in Select mode.
Solution: Use "vs" and similar. (closes #8640 )
2021-07-28 16:51:53 +02:00
Yegappan Lakshmanan
7e6a2a64f0
patch 8.2.3232: system() does not work without a second argument
...
Problem: system() does not work without a second argument.
Solution: Do not require a second argument. (Yegappan Lakshmanan,
closes #8651 , closes #8650 )
2021-07-28 11:51:48 +02: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