summaryrefslogtreecommitdiff
path: root/src/memline.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.3245: the crypt key may appear in a swap partitionv8.2.3245Bram Moolenaar2021-07-291-5/+0
| | | | | | Problem: The crypt key may appear in a swap partition. Solution: When using xchaha20 use sodium_mlock(). (Christian Brabandt, closes #8657)
* patch 8.2.3114: Amiga-like systems: build error using stat()v8.2.3114=?UTF-8?q?Ola=20S=C3=B6der?=2021-07-061-4/+6
| | | | | | 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)
* patch 8.2.3062: internal error when adding several text propertiesv8.2.3062Bram Moolenaar2021-06-271-4/+6
| | | | | | 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)
* patch 8.2.3032: build problems with MSVC, other crypt issues with libsodiumv8.2.3032Christian Brabandt2021-06-211-1/+2
| | | | | | | 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)
* patch 8.2.3022: available encryption methods are not strong enoughv8.2.3022Christian Brabandt2021-06-201-8/+30
| | | | | | Problem: Available encryption methods are not strong enough. Solution: Add initial support for xchaha20. (Christian Brabandt, closes #8394)
* patch 8.2.2966: ml_get errors after recovering a filev8.2.2966Bram Moolenaar2021-06-091-0/+1
| | | | | Problem: ml_get errors after recovering a file. (Yegappan Lakshmanan) Solution: Fix the cursor position after deleting lines.
* patch 8.2.2922: computing array length is done in various waysv8.2.2922K.Takata2021-06-021-1/+1
| | | | | Problem: Computing array length is done in various ways. Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes #8305)
* patch 8.2.2890: text property duplicated when data block splitsv8.2.2890Bram Moolenaar2021-05-261-2/+7
| | | | | Problem: Text property duplicated when data block splits. Solution: Do not continue text prop from previous line. (closes #8261)
* patch 8.2.2588: build failure with tiny featuresv8.2.2588Bram Moolenaar2021-03-101-2/+5
| | | | | Problem: Build failure with tiny features. Solution: Add #ifdef. Run recover test separately.
* patch 8.2.2586: process id may be invalidv8.2.2586Bram Moolenaar2021-03-101-7/+29
| | | | | | Problem: Process id may be invalid. Solution: Use sysinfo.uptime to check for recent reboot. (suggested by Hugo van der Sanden, closes #7947)
* patch 8.2.2429: :goto does not work correctly with text propertiesv8.2.2429Bram Moolenaar2021-01-301-11/+23
| | | | | | 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)
* patch 8.2.2160: various typosv8.2.2160Bram Moolenaar2020-12-181-1/+1
| | | | | Problem: Various typos. Solution: Fix spelling mistakes. (closes #7494)
* patch 8.2.2026: Coverity warns for possibly using not NUL terminated stringv8.2.2026Bram Moolenaar2020-11-211-0/+1
| | | | | Problem: Coverity warns for possibly using not NUL terminated string. Solution: Put a NUL in b0_hname just in case.
* patch 8.2.1970: it is easy to make mistakes when cleaning up swap filesv8.2.1970Bram Moolenaar2020-11-091-3/+29
| | | | | | | | 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)
* patch 8.2.1898: command modifier parsing always uses global cmdmodv8.2.1898Bram Moolenaar2020-10-241-3/+4
| | | | | Problem: Command modifier parsing always uses global cmdmod. Solution: Pass in cmdmod_T to use. Rename struct fields consistently.
* patch 8.2.1670: a couple of gcc compiler warningsv8.2.1670Bram Moolenaar2020-09-121-1/+1
| | | | | Problem: A couple of gcc compiler warnings. Solution: Initialize local variables. (Dominique Pellé, closes #6944)
* patch 8.2.1507: using malloc() directlyv8.2.1507Bram Moolenaar2020-08-221-2/+1
| | | | | | Problem: Using malloc() directly. Solution: Use ALLOC_ONE(). Remove superfluous typecast. (Hussam al-Homsi, closes #6768)
* patch 8.2.1219: symlink not followed if dirname ends in //v8.2.1219Bram Moolenaar2020-07-151-9/+9
| | | | | Problem: Symlink not followed if dirname ends in //. Solution: Resolve symlink earlier. (Tomáš Janoušek, closes #6454)
* patch 8.2.0967: unnecessary type casts for vim_strnsave()v8.2.0967Bram Moolenaar2020-06-121-1/+1
| | | | | Problem: Unnecessary type casts for vim_strnsave(). Solution: Remove the type casts.
* patch 8.2.0853: ml_delete() often called with FALSE argumentv8.2.0853Bram Moolenaar2020-05-301-4/+4
| | | | | Problem: ml_delete() often called with FALSE argument. Solution: Use ml_delete_flags(x, ML_DEL_MESSAGE) when argument is TRUE.
* patch 8.2.0845: text properties crossing lines not handled correctlyv8.2.0845Bram Moolenaar2020-05-301-16/+16
| | | | | | Problem: Text properties crossing lines not handled correctly. Solution: When joining lines merge text properties if possible. (Axel Forsman, closes #5839, closes #5683)
* patch 8.2.0844: text properties crossing lines not handled correctlyv8.2.0844Bram Moolenaar2020-05-301-44/+75
| | | | | | 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)
* patch 8.2.0256: time and timer related code is spread outv8.2.0256Bram Moolenaar2020-02-141-88/+0
| | | | | | Problem: Time and timer related code is spread out. Solution: Move time and timer related code to a new file. (Yegappan Lakshmanan, closes #5604)
* patch 8.2.0156: various typos in source files and testsv8.2.0156Bram Moolenaar2020-01-261-1/+1
| | | | | Problem: Various typos in source files and tests. Solution: Fix the typos. (Emir Sari, closes #5532)
* patch 8.2.0126: textprop test failsv8.2.0126Bram Moolenaar2020-01-171-1/+1
| | | | | Problem: Textprop test fails. Solution: Fix sign in computation.
* patch 8.2.0124: compiler warnings for variable typesv8.2.0124Bram Moolenaar2020-01-171-3/+3
| | | | | Problem: Compiler warnings for variable types. Solution: Change type, add type cast. (Mike Williams)
* patch 8.2.0115: byte2line() does not work correctly with text propertiesv8.2.0115Bram Moolenaar2020-01-131-5/+31
| | | | | | | Problem: Byte2line() does not work correctly with text properties. (Billie Cleek) Solution: Take the bytes of the text properties into account. (closes #5334)
* patch 8.1.2388: using old C style commentsv8.1.2388Bram Moolenaar2019-12-041-439/+438
| | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate.
* patch 8.1.2371: FEAT_TEXT_PROP is a confusing namev8.1.2371Bram Moolenaar2019-11-301-13/+13
| | | | | Problem: FEAT_TEXT_PROP is a confusing name. Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes #5291)
* patch 8.1.2243: typos in commentsv8.1.2243Bram Moolenaar2019-11-021-1/+1
| | | | | | Problem: Typos in comments. Solution: Fix the typos. (Dominique Pelle, closes #5160) Also adjust formatting a bit.
* patch 8.1.2223: cannot see what buffer an ml_get error is forv8.1.2223Bram Moolenaar2019-10-261-1/+4
| | | | | Problem: Cannot see what buffer an ml_get error is for. Solution: Add the buffer number and name in the message
* patch 8.1.2180: Error E303 is not useful when 'directory' is emptyv8.1.2180Bram Moolenaar2019-10-191-2/+2
| | | | | Problem: Error E303 is not useful when 'directory' is empty. Solution: Skip the error message. (Daniel Hahler, #5067)
* patch 8.1.2064: MS-Windows: compiler warnings for unused argumentsv8.1.2064Bram Moolenaar2019-09-211-1/+1
| | | | | Problem: MS-Windows: compiler warnings for unused arguments. Solution: Add UNUSED. (Yegappan Lakshmanan, closes #4963)
* patch 8.1.1983: compiler nags for uninitialized variable and unused functionv8.1.1983Bram Moolenaar2019-09-041-1/+1
| | | | | Problem: Compiler nags for uninitialized variable and unused function. Solution: Add unnecessary initialization. Move function inside #ifdef.
* patch 8.1.1813: ATTENTION prompt for a preview popup windowv8.1.1813Bram Moolenaar2019-08-041-1/+2
| | | | | | Problem: ATTENTION prompt for a preview popup window. Solution: Close the popup window if aborting the buffer load. Avoid getting the ATTENTION dialog.
* patch 8.1.1725: MS-Windows: E325 message may use incorrect date formatv8.1.1725Bram Moolenaar2019-07-211-1/+18
| | | | | | 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)
* patch 8.1.1711: listener callback called at the wrong momentv8.1.1711Bram Moolenaar2019-07-171-8/+9
| | | | | Problem: Listener callback called at the wrong moment Solution: Invoke listeners before calling ml_delete_int(). (closes #4657)
* patch 8.1.1700: listener callback called for the wrong bufferv8.1.1700Bram Moolenaar2019-07-151-59/+73
| | | | | Problem: Listener callback called for the wrong buffer. Solution: Invoke listeners before calling ml_append_int().
* patch 8.1.1681: insert stray "{" when listener gets buffer linev8.1.1681Bram Moolenaar2019-07-131-1/+3
| | | | | Problem: Insert stray "{" when listener gets buffer line. (Paul Jolly) Solution: Flush the cached line after invoking listeners. (closes #4455)
* patch 8.1.1567: localtime_r() does not respond to $TZ changesv8.1.1567Bram Moolenaar2019-06-181-7/+43
| | | | | Problem: Localtime_r() does not respond to $TZ changes. Solution: If $TZ changes then call tzset(). (Tom Ryder)
* patch 8.1.1498: ":write" increments b:changedtick even though nothing changedv8.1.1498Bram Moolenaar2019-06-081-1/+1
| | | | | | Problem: ":write" increments b:changedtick even though nothing changed. (Daniel Hahler) Solution: Only increment b:changedtick if the modified flag is reset.
* patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar2019-05-281-8/+6
| | | | | | 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.
* patch 8.1.1395: saving for undo may access invalid memoryv8.1.1395Bram Moolenaar2019-05-251-2/+6
| | | | | Problem: Saving for undo may access invalid memory. (Dominique Pelle) Solution: Set ml_line_len also when returning a constant string.
* patch 8.1.1384: using "int" for alloc() often results in compiler warningsv8.1.1384Bram Moolenaar2019-05-241-11/+11
| | | | | | 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.
* patch 8.1.1371: cannot recover from a swap filev8.1.1371Bram Moolenaar2019-05-231-7/+11
| | | | | | | 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)
* patch 8.1.1344: Coverity complains about possibly using a NULL pointerv8.1.1344Bram Moolenaar2019-05-181-3/+4
| | | | | | | 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().
* patch 8.1.1335: listener callback is called after inserting textv8.1.1335Bram Moolenaar2019-05-161-0/+11
| | | | | | Problem: Listener callback is called after inserting text. Solution: Flush the changes before inserting or deleting a line. Store changes per buffer.
* patch 8.1.1318: code for text changes is in a "misc" filev8.1.1318Bram Moolenaar2019-05-111-2/+2
| | | | | Problem: Code for text changes is in a "misc" file. Solution: Move the code to change.c.
* patch 8.1.1313: warnings for using localtime() and ctime()v8.1.1313Bram Moolenaar2019-05-101-21/+45
| | | | | Problem: Warnings for using localtime() and ctime(). Solution: Use localtime_r() if available. Avoid using ctime().
* patch 8.1.1232: can't build on MS-Windowsv8.1.1232Bram Moolenaar2019-04-281-8/+10
| | | | | Problem: Can't build on MS-Windows. Solution: Define process_still_running.