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
491669701c
patch 8.2.3943: compiler warning from gcc for uninitialized variable
...
Problem: Compiler warning from gcc for uninitialized variable.
Solution: Initialize variable. (closes #9429 )
2021-12-30 10:51:45 +00:00
Bram Moolenaar
febb78fa17
patch 8.2.3931: Coverity reports a memory leak
...
Problem: Coverity reports a memory leak.
Solution: Free memory in case of failure.
2021-12-29 11:59:53 +00:00
Bram Moolenaar
06f6095623
patch 8.2.3925: diff mode confused by NUL bytes
...
Problem: Diff mode confused by NUL bytes.
Solution: Handle NUL bytes differently. (Christian Brabandt, closes #9421 ,
closes #9418 )
2021-12-28 18:30:05 +00:00
Lewis Russell
d9da86e94e
patch 8.2.3921: the way xdiff is used is inefficient
...
Problem: The way xdiff is used is inefficient.
Solution: Use hunk_func instead of the out_line callback. (Lewis Russell,
closes #9344 )
2021-12-28 13:54:41 +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
e124204c4f
patch 8.2.3830: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2021-12-16 20:56:57 +00:00
Bram Moolenaar
841c225b9e
patch 8.2.3556: filler lines are incorrect for other window in diff mode
...
Problem: Filler lines are incorrect for other window in diff mode after
making a change.
Solution: Copy filler lines from the current window. (closes #8809 )
2021-10-22 20:56:55 +01:00
Bram Moolenaar
04626c243c
patch 8.2.3394: filler lines are wrong when changing text in diff mode
...
Problem: Filler lines are wrong when changing text in diff mode.
Solution: Don't change the filler lines on every change. Check
scrollbinding when updating the filler lines. (closes #8809 )
2021-09-01 16:02:07 +02:00
Christian Brabandt
ba02e4720f
patch 8.2.3390: included xdiff code is outdated
...
Problem: Included xdiff code is outdated.
Solution: Sync with xdiff in git 2.33. (Christian Brabandt, closes #8431 )
2021-08-31 20:46:39 +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
Yegappan Lakshmanan
cd9172077b
patch 8.2.3194: 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, simplify some. (Yegappan
Lakshmanan, closes #8598 )
2021-07-21 19:09:09 +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
Yegappan Lakshmanan
a9a7c0c602
patch 8.2.3173: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add more type checks. (Yegappan Lakshmanan, closes #8581 )
2021-07-17 19:11:07 +02:00
glacambre
ad5c178a19
patch 8.2.2880: unified diff fails if actually used
...
Problem: Unified diff fails if actually used.
Solution: Invoke :diffupdate in the test. Fix the check for working external
diff. (Ghjuvan Lacambre, Christian Brabandt, closes #8197 )
2021-05-24 14:20:53 +02:00
Bram Moolenaar
4223d43c0f
patch 8.2.2490: 'wrap' option is always reset when starting diff mode
...
Problem: 'wrap' option is always reset when starting diff mode.
Solution: Add the "followwrap" item in 'diffopt'. (Rick Howe, closes #7797 )
2021-02-10 13:18:17 +01:00
Bram Moolenaar
e100440158
patch 8.2.1898: command modifier parsing always uses global cmdmod
...
Problem: Command modifier parsing always uses global cmdmod.
Solution: Pass in cmdmod_T to use. Rename struct fields consistently.
2020-10-24 20:49:43 +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
df44a27b53
patch 8.2.0928: many type casts are used for vim_strnsave()
...
Problem: Many type casts are used for vim_strnsave().
Solution: Make the length argument size_t instead of int. (Ken Takata,
closes #5633 ) Remove some type casts.
2020-06-07 20:49:05 +02:00
Bram Moolenaar
ca70c07b72
patch 8.2.0853: ml_delete() often called with FALSE argument
...
Problem: ml_delete() often called with FALSE argument.
Solution: Use ml_delete_flags(x, ML_DEL_MESSAGE) when argument is TRUE.
2020-05-30 20:30:46 +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
aeea72151c
patch 8.2.0500: using the same loop in many places
...
Problem: Using the same loop in many places.
Solution: Define more FOR_ALL macros. (Yegappan Lakshmanan, closes #5339 )
2020-04-02 18:50:46 +02:00
Bram Moolenaar
5d18efecfd
patch 8.1.2378: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
2019-12-01 21:11:22 +01:00
Bram Moolenaar
f4a1d1c054
patch 8.1.2302: :lockmarks does not work for '[ and ']
...
Problem: :lockmarks does not work for '[ and '].
Solution: save and restore '[ and '] marks. (James McCoy, closes #5222 )
2019-11-16 13:50:25 +01:00
Bram Moolenaar
c823477979
patch 8.1.2289: after :diffsplit closing the window does not disable diff
...
Problem: After :diffsplit closing the window does not disable diff.
Solution: Add "closeoff" to 'diffopt' and add it to the default.
2019-11-10 21:00:27 +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
1614a14901
patch 8.1.2120: some MB_ macros are more complicated than necessary
...
Problem: Some MB_ macros are more complicated than necessary. (Dominique
Pelle)
Solution: Simplify the macros. Expand inline.
2019-10-06 22:00:13 +02:00
Bram Moolenaar
af7645d373
patch 8.1.1989: the evalfunc.c file is still too big
...
Problem: The evalfunc.c file is still too big.
Solution: Move f_pathshorten() to filepath.c. Move f_cscope_connection() to
if_cscope.c. Move diff_ functions to diff.c. Move timer_
functions to ex_cmds2.c. move callback functions to evalvars.c.
2019-09-05 22:33:28 +02:00
Bram Moolenaar
4f57eefe1e
patch 8.1.1922: in diff mode global operations can be very slow
...
Problem: In diff mode global operations can be very slow.
Solution: Do not call diff_redraw() many times, call it once when redrawing.
And also don't update folds multiple times.
2019-08-24 20:54:19 +02: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
20c023aee0
patch 8.1.1405: "highlight" option of popup windows not supported
...
Problem: "highlight" option of popup windows not supported.
Solution: Implement the "highlight" option.
2019-05-26 21:03:24 +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
964b3746b9
patch 8.1.1384: using "int" for alloc() often results in compiler warnings
...
Problem: Using "int" for alloc() often results in compiler warnings.
Solution: Use "size_t" and remove type casts. Remove alloc_check(), Vim
only works with 32 bit ints anyway.
2019-05-24 18:54:09 +02:00
Bram Moolenaar
975880b6e6
patch 8.1.0991: cannot build with a mix of features
...
Problem: Cannot build with FEAT_EVAL defined and FEAT_SEARCH_EXTRA
undefined, and with FEAT_DIFF defined and FEAT_EVAL undefined.
Solution: Add a couple of #ifdefs. (closes #4067 )
2019-03-03 14:42:11 +01:00
Bram Moolenaar
b9ddda6c2d
patch 8.1.0956: using context:0 in 'diffopt' does not work well
...
Problem: Using context:0 in 'diffopt' does not work well.
Solution: Make zero context do the same as one line context. (closes #4005 )
2019-02-19 23:00:50 +01:00
Bram Moolenaar
0059074008
patch 8.1.0927: USE_CR is never defined
...
Problem: USE_CR is never defined.
Solution: Remove usage of USE_CR. (Ken Takata, closes #3958 )
2019-02-15 21:06:09 +01:00
Bram Moolenaar
135059724f
patch 8.1.0805: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate FEAT_MBYTE, part 1.
2019-01-24 15:04:48 +01:00
Bram Moolenaar
b5443cc46d
patch 8.1.0753: printf format not checked for semsg()
...
Problem: printf format not checked for semsg().
Solution: Add GNUC attribute and fix reported problems. (Dominique Pelle,
closes #3805 )
2019-01-15 20:19:40 +01:00
Bram Moolenaar
f9e3e09fdc
patch 8.1.0743: giving error messages is not flexible
...
Problem: Giving error messages is not flexible.
Solution: Add semsg(). Change argument from "char_u *" to "char *", also
for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes
#3302 ) Also make emsg() accept a "char *" argument. Get rid of
an enormous number of type casts.
2019-01-13 23:38:42 +01:00
Bram Moolenaar
b6fc72851c
patch 8.1.0562: parsing of 'diffopt' is slightly wrong
...
Problem: Parsing of 'diffopt' is slightly wrong.
Solution: Fix the parsing and add a test. (Jason Franklin, Christian
Brabandt)
2018-12-04 22:24:16 +01:00
Bram Moolenaar
d0721058f4
patch 8.1.0513: no error for set diffopt+=algorithm:
...
Problem: No error for set diffopt+=algorithm:.
Solution: Check for missing argument. (Hirohito Higashi, closes #3598 )
2018-11-05 21:21:33 +01:00
Bram Moolenaar
f080d70a82
patch 8.1.0502: internal diff fails when diffing a context diff
...
Problem: Internal diff fails when diffing a context diff. (Hirohito Higashi)
Solution: Only use callback calls with one line. (closes #3581 )
2018-10-31 22:57:26 +01:00
Bram Moolenaar
5f57bdcab7
patch 8.1.0497: :%diffput changes order of lines
...
Problem: :%diffput changes order of lines. (Markus Braun)
Solution: Do adjust marks when using internal diff.
2018-10-25 17:52:23 +02:00
Bram Moolenaar
df77cef92e
patch 8.1.0458: ml_get error and crash when using "do"
...
Problem: Ml_get error and crash when using "do".
Solution: Adjust cursor position also when diffupdate is not needed.
(Hirohito Higashi)
2018-10-07 17:46:42 +02:00
Bram Moolenaar
198fa066b2
patch 8.1.0402: the DiffUpdate event isn't triggered for :diffput
...
Problem: The DiffUpdate event isn't triggered for :diffput.
Solution: Also trigger DiffUpdate for :diffget and :diffput.
2018-09-18 21:20:26 +02:00
Bram Moolenaar
d2b58c0a2c
patch 8.1.0400: using freed memory with :diffget
...
Problem: Using freed memory with :diffget.
Solution: Skip ex_diffupdate() while updating diffs. (closes #3442 )
2018-09-16 18:10:48 +02:00
Bram Moolenaar
e8fa05b5bc
patch 8.1.0397: no event triggered after updating diffs
...
Problem: No event triggered after updating diffs.
Solution: Add the DiffUpdated event.
2018-09-16 15:48:06 +02:00
Bram Moolenaar
6e272acc82
patch 8.1.0395: compiler warning on 64-bit MS-Windows
...
Problem: Compiler warning on 64-bit MS-Windows.
Solution: Add type cast. (Mike Williams)
2018-09-16 14:51:36 +02:00
Bram Moolenaar
e3521d9cbb
patch 8.1.0394: diffs are not always updated correctly
...
Problem: Diffs are not always updated correctly.
Solution: When using internal diff update for any changes properly.
2018-09-16 14:10:31 +02:00
Bram Moolenaar
785fc6567f
patch 8.1.0393: not all white space difference options available
...
Problem: Not all white space difference options available.
Solution: Add "iblank", "iwhiteall" and "iwhiteeol" to 'diffopt'.
2018-09-15 19:17:38 +02:00