Bram Moolenaar
51b6eb47b3
patch 8.2.1507: using malloc() directly
...
Problem: Using malloc() directly.
Solution: Use ALLOC_ONE(). Remove superfluous typecast. (Hussam al-Homsi,
closes #6768 )
2020-08-22 15:19:18 +02:00
Bram Moolenaar
5966ea105e
patch 8.2.1219: symlink not followed if dirname ends in //
...
Problem: Symlink not followed if dirname ends in //.
Solution: Resolve symlink earlier. (Tomáš Janoušek, closes #6454 )
2020-07-15 15:30:05 +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
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
87be9be1db
patch 8.2.0845: text properties crossing lines not handled correctly
...
Problem: Text properties crossing lines not handled correctly.
Solution: When joining lines merge text properties if possible.
(Axel Forsman, closes #5839 , closes #5683 )
2020-05-30 15:32:02 +02:00
Bram Moolenaar
a9d4b84d97
patch 8.2.0844: text properties crossing lines not handled correctly
...
Problem: Text properties crossing lines not handled correctly.
Solution: When saving for undo include an extra line when needed and do not
adjust properties when undoing. (Axel Forsman, closes #5875 )
2020-05-30 14:46:52 +02:00
Bram Moolenaar
0a8fed6231
patch 8.2.0256: time and timer related code is spread out
...
Problem: Time and timer related code is spread out.
Solution: Move time and timer related code to a new file. (Yegappan
Lakshmanan, closes #5604 )
2020-02-14 13:22:17 +01:00
Bram Moolenaar
4b96df5a01
patch 8.2.0156: various typos in source files and tests
...
Problem: Various typos in source files and tests.
Solution: Fix the typos. (Emir Sari, closes #5532 )
2020-01-26 22:00:26 +01:00
Bram Moolenaar
94b6fb78c5
patch 8.2.0126: textprop test fails
...
Problem: Textprop test fails.
Solution: Fix sign in computation.
2020-01-17 21:00:59 +01:00
Bram Moolenaar
109ef128bd
patch 8.2.0124: compiler warnings for variable types
...
Problem: Compiler warnings for variable types.
Solution: Change type, add type cast. (Mike Williams)
2020-01-17 19:12:03 +01:00
Bram Moolenaar
9df53b62de
patch 8.2.0115: byte2line() does not work correctly with text properties
...
Problem: Byte2line() does not work correctly with text properties. (Billie
Cleek)
Solution: Take the bytes of the text properties into account.
(closes #5334 )
2020-01-13 20:40:51 +01:00
Bram Moolenaar
4ba37b5833
patch 8.1.2388: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
2019-12-04 21:57:43 +01:00
Bram Moolenaar
05ad5ff0ab
patch 8.1.2371: FEAT_TEXT_PROP is a confusing name
...
Problem: FEAT_TEXT_PROP is a confusing name.
Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes #5291 )
2019-11-30 22:48: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
cb86893114
patch 8.1.2223: cannot see what buffer an ml_get error is for
...
Problem: Cannot see what buffer an ml_get error is for.
Solution: Add the buffer number and name in the message
2019-10-26 20:56:21 +02:00
Bram Moolenaar
00e192becd
patch 8.1.2180: Error E303 is not useful when 'directory' is empty
...
Problem: Error E303 is not useful when 'directory' is empty.
Solution: Skip the error message. (Daniel Hahler, #5067 )
2019-10-19 17:01:28 +02:00
Bram Moolenaar
bd67aac279
patch 8.1.2064: MS-Windows: compiler warnings for unused arguments
...
Problem: MS-Windows: compiler warnings for unused arguments.
Solution: Add UNUSED. (Yegappan Lakshmanan, closes #4963 )
2019-09-21 23:09:04 +02:00
Bram Moolenaar
ea781459b9
patch 8.1.1983: compiler nags for uninitialized variable and unused function
...
Problem: Compiler nags for uninitialized variable and unused function.
Solution: Add unnecessary initialization. Move function inside #ifdef.
2019-09-04 18:53:12 +02:00
Bram Moolenaar
2debf1c16b
patch 8.1.1813: ATTENTION prompt for a preview popup window
...
Problem: ATTENTION prompt for a preview popup window.
Solution: Close the popup window if aborting the buffer load. Avoid getting
the ATTENTION dialog.
2019-08-04 20:44:19 +02:00
Bram Moolenaar
663bbc09ba
patch 8.1.1725: MS-Windows: E325 message may use incorrect date format
...
Problem: MS-Windows: E325 message may use incorrect date format.
Solution: Convert strftime() result to 'encoding'. Also make the message
translatable. (Ken Takata, closes #4685 , closes #4681 )
2019-07-21 15:23:35 +02:00
Bram Moolenaar
acf7544cf6
patch 8.1.1711: listener callback called at the wrong moment
...
Problem: Listener callback called at the wrong moment
Solution: Invoke listeners before calling ml_delete_int(). (closes #4657 )
2019-07-17 22:55:35 +02:00
Bram Moolenaar
250e3112c6
patch 8.1.1700: listener callback called for the wrong buffer
...
Problem: Listener callback called for the wrong buffer.
Solution: Invoke listeners before calling ml_append_int().
2019-07-15 23:02:14 +02:00
Bram Moolenaar
0fb286e82d
patch 8.1.1681: insert stray "{" when listener gets buffer line
...
Problem: Insert stray "{" when listener gets buffer line. (Paul Jolly)
Solution: Flush the cached line after invoking listeners. (closes #4455 )
2019-07-13 20:14:45 +02:00
Bram Moolenaar
db51730df1
patch 8.1.1567: localtime_r() does not respond to $TZ changes
...
Problem: Localtime_r() does not respond to $TZ changes.
Solution: If $TZ changes then call tzset(). (Tom Ryder)
2019-06-18 22:53:24 +02:00
Bram Moolenaar
c024b46678
patch 8.1.1498: ":write" increments b:changedtick even though nothing changed
...
Problem: ":write" increments b:changedtick even though nothing changed.
(Daniel Hahler)
Solution: Only increment b:changedtick if the modified flag is reset.
2019-06-08 18:07:21 +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
adfde115d5
patch 8.1.1395: saving for undo may access invalid memory
...
Problem: Saving for undo may access invalid memory. (Dominique Pelle)
Solution: Set ml_line_len also when returning a constant string.
2019-05-25 22:11:45 +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
99499b1c05
patch 8.1.1371: cannot recover from a swap file
...
Problem: Cannot recover from a swap file.
Solution: Do not expand environment variables in the swap file name.
Do not check the extension when we already know a file is a swap
file. (Ken Takata, closes 4415, closes #4369 )
2019-05-23 21:35:48 +02:00
Bram Moolenaar
0d3cb73012
patch 8.1.1344: Coverity complains about possibly using a NULL pointer
...
Problem: Coverity complains about possibly using a NULL pointer and copying
a string into a fixed size buffer.
Solution: Check for NULL, even though it should not happen. Use
vim_strncpy() instead of strcpy().
2019-05-18 13:05:18 +02:00
Bram Moolenaar
dda4144d39
patch 8.1.1335: listener callback is called after inserting text
...
Problem: Listener callback is called after inserting text.
Solution: Flush the changes before inserting or deleting a line. Store
changes per buffer.
2019-05-16 22:11:47 +02:00
Bram Moolenaar
ec28d1516e
patch 8.1.1318: code for text changes is in a "misc" file
...
Problem: Code for text changes is in a "misc" file.
Solution: Move the code to change.c.
2019-05-11 18:36:34 +02:00
Bram Moolenaar
63d2555c9c
patch 8.1.1313: warnings for using localtime() and ctime()
...
Problem: Warnings for using localtime() and ctime().
Solution: Use localtime_r() if available. Avoid using ctime().
2019-05-10 21:28:38 +02:00
Bram Moolenaar
1b243eafb0
patch 8.1.1232: can't build on MS-Windows
...
Problem: Can't build on MS-Windows.
Solution: Define process_still_running.
2019-04-28 22:50:40 +02:00
Bram Moolenaar
67cf86bfff
patch 8.1.1231: asking about existing swap file unnecessarily
...
Problem: Asking about existing swap file unnecessarily.
Solution: When it is safe, delete the swap file. Remove
HAS_SWAP_EXISTS_ACTION, it is always defined. (closes #1237 )
2019-04-28 22:25:38 +02:00
Bram Moolenaar
afde13b62b
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
...
Problem: A lot of code is shared between vim.exe and gvim.exe.
Solution: Optionally put the shared code in vim.dll. (Ken Takata,
closes #4287 )
2019-04-28 19:46:49 +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
4f97475d32
patch 8.1.0941: macros for MS-Windows are inconsistent
...
Problem: Macros for MS-Windows are inconsistent, using "32", "3264 and
others.
Solution: Use MSWIN for all MS-Windows builds. Use FEAT_GUI_MSWIN for the
GUI build. (Hirohito Higashi, closes #3932 )
2019-02-17 17:44:42 +01:00
Bram Moolenaar
29ddebef40
patch 8.1.0826: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
2019-01-26 17:28:26 +01:00
Bram Moolenaar
fc3abf47fb
patch 8.1.0806: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate FEAT_MBYTE, part 2.
2019-01-24 15:54:21 +01:00
Bram Moolenaar
32526b3c18
patch 8.1.0779: argument for message functions is inconsistent
...
Problem: Argument for message functions is inconsistent.
Solution: Make first argument to msg() "char *".
2019-01-19 17:43:09 +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
ccae4672fd
patch 8.1.0688: text properties are not restored by undo
...
Problem: Text properties are not restored by undo.
Solution: Also save text properties for undo.
2019-01-04 15:09:57 +01:00
Bram Moolenaar
4b7214ea78
patch 8.1.0684: warnings from 64-bit compiler
...
Problem: Warnings from 64-bit compiler.
Solution: Add type casts. (Mike Williams)
2019-01-03 21:55:32 +01:00
Bram Moolenaar
b56ac049ea
patch 8.1.0655: when appending a line text property flags are not added
...
Problem: When appending a line text property flags are not added.
Solution: Add text properties to a newly added line.
2018-12-28 23:22:40 +01:00
Bram Moolenaar
c1a9bc1a72
patch 8.1.0654: when deleting a line text property flags are not adjusted
...
Problem: When deleting a line text property flags are not adjusted.
Solution: Adjust text property flags in preceding and following lines.
2018-12-28 21:59:29 +01:00
Bram Moolenaar
00b1e04165
patch 8.1.0643: computing byte offset wrong
...
Problem: Computing byte offset wrong. (Bjorn Linse)
Solution: Use the right variable for array index.
2018-12-26 23:42:10 +01:00
Bram Moolenaar
e6fdf79980
patch 8.1.0642: swapinfo() leaks memory
...
Problem: swapinfo() leaks memory.
Solution: Avoid allocating the strings twice.
2018-12-26 22:57:42 +01:00
Bram Moolenaar
b413d2e6a8
patch 8.1.0636: line2byte() gives wrong values with text properties
...
Problem: line2byte() gives wrong values with text properties. (Bjorn Linse)
Solution: Compute byte offsets differently when text properties were added.
(closes #3718 )
2018-12-25 23:15:46 +01:00
Bram Moolenaar
4efe73b478
patch 8.1.0601: a few compiler warnings
...
Problem: A few compiler warnings.
Solution: Add type casts. (Mike Williams)
2018-12-16 14:37:39 +01:00