=?UTF-8?q?Dundar=20G=C3=B6c?=
f26c16144d
patch 8.2.4704: using "else" after return or break increases indent
...
Problem: Using "else" after return or break increases indent.
Solution: Remove "else" and reduce indent. (Goc Dundar, closes #10099 )
2022-04-07 13:26:34 +01:00
Bram Moolenaar
188639d75c
patch 8.2.4685: when a swap file is found for a popup there is no dialog
...
Problem: When a swap file is found for a popup there is no dialog and the
buffer is loaded anyway.
Solution: Silently load the buffer read-only. (closes #10073 )
2022-04-04 16:57:21 +01:00
zeertzjq
3c5999e53d
patch 8.2.4613: return type of swapfile_unchanged() is wrong
...
Problem: Return type of swapfile_unchanged() is wrong.
Solution: Use "int". (closes #10000 Yeah!)
2022-03-23 13:54:51 +00:00
kylo252
ae6f1d8b14
patch 8.2.4402: missing parenthesis may cause unexpected problems
...
Problem: Missing parenthesis may cause unexpected problems.
Solution: Add more parenthesis is macros. (closes #9788 )
2022-02-16 19:24:07 +00:00
Bram Moolenaar
f9435e49ef
patch 8.2.4399: crash after ml_get error
...
Problem: Crash after ml_get error.
Solution: When returning "???" flush the line and set ml_line_lnum.
2022-02-16 16:33:28 +00:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
d5cec1f1f0
patch 8.2.4255: theoretical computation overflow
...
Problem: Theoretical computation overflow.
Solution: Perform multiplication in a wider type. (closes #9657 )
2022-01-29 15:19:23 +00: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
K.Takata
1a8825d7a3
patch 8.2.4144: cannot load libsodium dynamically
...
Problem: Cannot load libsodium dynamically.
Solution: Support dynamic loading on MS-Windows. (Ken Takata, closes #9554 )
2022-01-19 13:32:57 +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
eaaac014a0
patch 8.2.3983: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-02 17:00:40 +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
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
96e7a5928e
patch 8.2.3674: when ml_get_buf() fails it messes up IObuff
...
Problem: When ml_get_buf() fails it messes up IObuff.
Solution: Return a local pointer. (closes #9214 )
2021-11-25 13:52:37 +00:00
Bram Moolenaar
8b0e62c93b
patch 8.2.3543: swapname has double slash when 'directory' ends in it
...
Problem: Swapname has double slash when 'directory' ends in double slash.
(Shane Smith)
Solution: Remove the superfluous slash. (closes #8876 )
2021-10-19 22:12:25 +01:00
Leah Neukirchen
0a7984af56
patch 8.2.3510: changes are only detected with one second accuracy
...
Problem: Changes are only detected with one second accuracy.
Solution: Use the nanosecond time if possible. (Leah Neukirchen,
closes #8873 , closes #8875 )
2021-10-14 21:27:55 +01:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
3826c0513b
patch 8.2.3490: superfluous return statements
...
Problem: Superfluous return statements.
Solution: Remove superfluous return statements from void functions.
(closes #8977 )
2021-10-09 15:39:25 +01:00
Bram Moolenaar
e2982d6911
patch 8.2.3483: #ifdef for using sysinfo() is incomplete
...
Problem: #ifdef for using sysinfo() is incomplete.
Solution: Also check for HAVE_SYSINFO. Make autoconf check use TRY_LINK.
(closes #8952 )
2021-10-06 11:27:21 +01:00
Bram Moolenaar
df9070e300
patch 8.2.3375: using uninitialized memory
...
Problem: Using uninitialized memory.
Solution: Initialize textprop_save_len.
2021-08-25 17:31:37 +02:00
Bram Moolenaar
cdd8a5e6fe
patch 8.2.3372: line2byte() value wrong when adding a text property
...
Problem: line2byte() value wrong when adding a text property. (Yuto Kimura)
Solution: Adjust length for text property. (closes #8772 ) Also fix it for
deleting a line.
2021-08-25 16:40:03 +02:00
Bram Moolenaar
434df7a401
patch 8.2.3355: MS-Windows: compiler warning for 64-32 bit conversion
...
Problem: MS-Windows: compiler warning for 64-32 bit conversion.
Solution: Add type casts.
2021-08-16 21:15:32 +02:00
Bram Moolenaar
92755bba30
patch 8.2.3354: build failure with +byte_offset but without +textprop
...
Problem: Build failure with +byte_offset but without +textprop. (John
Marriott)
Solution: Adjust the #ifdef.
2021-08-15 22:18:04 +02:00
Bram Moolenaar
14c7530c4f
patch 8.2.3348: line2byte() returns wrong value after adding textprop
...
Problem: line2byte() returns wrong value after adding textprop. (Yuto
Kimura)
Solution: Reduce the length by the size of the text property. (closes #8759 )
2021-08-15 14:28:40 +02:00
Bram Moolenaar
131530a54d
patch 8.2.3245: the crypt key may appear in a swap partition
...
Problem: The crypt key may appear in a swap partition.
Solution: When using xchaha20 use sodium_mlock(). (Christian Brabandt,
closes #8657 )
2021-07-29 20:37:49 +02:00
=?UTF-8?q?Ola=20S=C3=B6der?=
599a6e5b36
patch 8.2.3114: Amiga-like systems: build error using stat()
...
Problem: Amiga-like systems: build error using stat().
Solution: Only build swapfile_process_running() on systems where it is
actually used. (Ola Söder, closes #8519 )
2021-07-06 20:15:46 +02:00
Bram Moolenaar
4cd5c52d64
patch 8.2.3062: internal error when adding several text properties
...
Problem: Internal error when adding several text properties.
Solution: Do not handle text properties when deleting a line for splitting a
data block. (closes #8466 )
2021-06-27 13:04:00 +02:00
Christian Brabandt
226b28b961
patch 8.2.3032: build problems with MSVC, other crypt issues with libsodium
...
Problem: Build problems with MSVC, other crypt issues with libsodium.
Solution: Adjust MSVC makefile. Disable swap file only when 'key' is set.
Adjust error message used when key is wrong. Fix Coverity issues.
(Christian Brabandt, closes #8420 , closes #8411 )
2021-06-21 21:08:08 +02:00
Christian Brabandt
f573c6e1ed
patch 8.2.3022: available encryption methods are not strong enough
...
Problem: Available encryption methods are not strong enough.
Solution: Add initial support for xchaha20. (Christian Brabandt,
closes #8394 )
2021-06-20 14:02:16 +02:00
Bram Moolenaar
e3f50ad640
patch 8.2.2966: ml_get errors after recovering a file
...
Problem: ml_get errors after recovering a file. (Yegappan Lakshmanan)
Solution: Fix the cursor position after deleting lines.
2021-06-09 12:33:40 +02:00
K.Takata
eeec254878
patch 8.2.2922: computing array length is done in various ways
...
Problem: Computing array length is done in various ways.
Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes #8305 )
2021-06-02 13:28:16 +02:00
Bram Moolenaar
840f91f110
patch 8.2.2890: text property duplicated when data block splits
...
Problem: Text property duplicated when data block splits.
Solution: Do not continue text prop from previous line. (closes #8261 )
2021-05-26 22:32:10 +02:00
Bram Moolenaar
23b32a8d6b
patch 8.2.2588: build failure with tiny features
...
Problem: Build failure with tiny features.
Solution: Add #ifdef. Run recover test separately.
2021-03-10 21:55:46 +01:00
Bram Moolenaar
f52f0606ed
patch 8.2.2586: process id may be invalid
...
Problem: Process id may be invalid.
Solution: Use sysinfo.uptime to check for recent reboot. (suggested by Hugo
van der Sanden, closes #7947 )
2021-03-10 21:26:37 +01:00
Bram Moolenaar
59ff64079b
patch 8.2.2429: :goto does not work correctly with text properties
...
Problem: :goto does not work correctly with text properties. (Sam McCall)
Solution: Add a test. (Andrew Radev) Also use the text property size when
computing the remaining offset. (closes #5930 )
2021-01-30 17:16:28 +01:00
Bram Moolenaar
8e7d6223f6
patch 8.2.2160: various typos
...
Problem: Various typos.
Solution: Fix spelling mistakes. (closes #7494 )
2020-12-18 19:49:56 +01:00
Bram Moolenaar
e79cdb69a4
patch 8.2.2026: Coverity warns for possibly using not NUL terminated string
...
Problem: Coverity warns for possibly using not NUL terminated string.
Solution: Put a NUL in b0_hname just in case.
2020-11-21 13:51:16 +01:00
Bram Moolenaar
f883508e36
patch 8.2.1970: it is easy to make mistakes when cleaning up swap files
...
Problem: It is easy to make mistakes when cleaning up swap files after the
system crashed.
Solution: Warn for the process still running after recovery. Do not
automatically delete a swap file created on another system.
(David Fries, closes #7273 )
2020-11-09 21:04: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
8f13d82fa6
patch 8.2.1670: a couple of gcc compiler warnings
...
Problem: A couple of gcc compiler warnings.
Solution: Initialize local variables. (Dominique Pellé, closes #6944 )
2020-09-12 21:04:23 +02:00
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