summaryrefslogtreecommitdiff
path: root/src/memline.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefsv8.0.1118Bram Moolenaar2017-09-161-3/+3
| | | | | | Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always enabled and only adds 7% to the binary size of the tiny build. Solution: Graduate FEAT_WINDOWS.
* patch 8.0.0466: still macros that should be all-capsv8.0.0466Bram Moolenaar2017-03-161-1/+1
| | | | | Problem: There are still a few macros that should be all-caps. Solution: Make a few more macros all-caps.
* patch 8.0.0451: some macros are in lower casev8.0.0451Bram Moolenaar2017-03-121-3/+3
| | | | | | Problem: Some macros are in lower case. Solution: Make a few more macros upper case. Avoid lower case macros use an argument twice.
* patch 8.0.0387: compiler warningsv8.0.0387Bram Moolenaar2017-02-281-2/+2
| | | | | Problem: compiler warnings Solution: Add type casts. (Christian Brabandt)
* patch 8.0.0365: might free a dict item that wasn't allocatedv8.0.0365Bram Moolenaar2017-02-251-2/+2
| | | | | | Problem: Might free a dict item that wasn't allocated. Solution: Call dictitem_free(). (Nikolai Pavlov) Use this for b:changedtick.
* patch 8.0.0337: invalid memory access in :recover commandv8.0.0337Bram Moolenaar2017-02-181-4/+8
| | | | | | Problem: Invalid memory access in :recover command. Solution: Avoid access before directory name. (Dominique Pelle, closes #1488)
* patch 8.0.0334: can't access b:changedtick from a dict referencev8.0.0334Bram Moolenaar2017-02-171-5/+5
| | | | | | Problem: Can't access b:changedtick from a dict reference. Solution: Make changedtick a member of the b: dict. (inspired by neovim #6112)
* patch 8.0.0177: BufEnter autocommand not fired for a directoryv8.0.0177Bram Moolenaar2017-01-131-1/+1
| | | | | | | | Problem: When opening a buffer on a directory and inside a try/catch then the BufEnter event is not triggered. Solution: Return NOTDONE from readfile() for a directory and deal with the three possible return values. (Justin M. Keyes, closes #1375, closes #1353)
* patch 8.0.0074v8.0.0074Bram Moolenaar2016-11-101-14/+14
| | | | | | Problem: Cannot make Vim fail on an internal error. Solution: Add IEMSG() and IEMSG2(). (Domenique Pelle) Avoid reporting an internal error without mentioning where.
* patch 7.4.2293v7.4.2293Bram Moolenaar2016-08-291-1/+1
| | | | | Problem: Modelines in source code are inconsistant. Solution: Use the same line in most files. Add 'noet'. (Naruhiko Nishino)
* patch 7.4.2101v7.4.2101Bram Moolenaar2016-07-241-4/+4
| | | | | Problem: Looping over windows, buffers and tab pages is inconsistant. Solution: Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan)
* patch 7.4.2048v7.4.2048Bram Moolenaar2016-07-161-5/+5
| | | | | Problem: There is still code and help for unsupported systems. Solution: Remove the code and text. (Hirohito Higashi)
* patch 7.4.1975v7.4.1975Bram Moolenaar2016-07-011-15/+15
| | | | | | Problem: On MS-Windows large files (> 2Gbyte) cause problems. Solution: Use "off_T" instead of "off_t". Use "stat_T" instead of "struct stat". Use 64 bit system functions if available. (Ken Takata)
* patch 7.4.1930v7.4.1930Bram Moolenaar2016-06-131-1/+2
| | | | | Problem: Can't build without +spell but with +quickfix. (Charles) Solution: Add better #ifdef around ml_append_buf(). (closes #864)
* patch 7.4.1537v7.4.1537Bram Moolenaar2016-03-111-1/+1
| | | | | Problem: Too many feature flags for pipes, jobs and channels. Solution: Only use FEAT_JOB_CHANNEL.
* patch 7.4.1502v7.4.1502Bram Moolenaar2016-03-061-0/+5
| | | | | | Problem: Writing last-but-one line of buffer to a channel isn't implemented yet. Solution: Implement it. Fix leaving a swap file behind.
* patch 7.4.1399v7.4.1399Bram Moolenaar2016-02-231-39/+10
| | | | | Problem: The MS-DOS code does not build. Solution: Remove the old MS-DOS code.
* patch 7.4.1276v7.4.1276Bram Moolenaar2016-02-071-1/+1
| | | | | Problem: Warning for not using return value of fcntl(). Solution: Explicitly ignore the return value.
* patch 7.4.1237v7.4.1237Bram Moolenaar2016-02-021-2/+1
| | | | | Problem: Can't translate message without adding a line break. Solution: Join the two parts of the message.
* patch 7.4.1210v7.4.1210Bram Moolenaar2016-01-301-181/+116
| | | | | | Problem: Using old style function declarations. Solution: Change to new style function declarations. (script by Hirohito Higashi)
* patch 7.4.1198v7.4.1198Bram Moolenaar2016-01-291-27/+27
| | | | | | Problem: Still using __ARGS. Solution: Remove __ARGS in several files. (script by Hirohito Higashi) Also remove use of HAVE_STDARG_H.
* patch 7.4.1009v7.4.1009Bram Moolenaar2015-12-311-2/+2
| | | | | Problem: There are still #ifdefs for ARCHIE. Solution: Remove references to ARCHIE, the code was removed in Vim 5.
* patch 7.4.1008v7.4.1008Bram Moolenaar2015-12-311-7/+2
| | | | | Problem: The OS/2 code pollutes the source while nobody uses it these days. Solution: Drop the support for OS/2.
* patch 7.4.812v7.4.812Bram Moolenaar2015-08-081-1/+2
| | | | | | Problem: Gcc sanitizer complains about using a NULL pointer to memmove(). Solution: Only call memmove when there is something to move. (Vittorio Zecca)
* patch 7.4.785v7.4.785Bram Moolenaar2015-07-171-2/+4
| | | | | | Problem: On some systems automatically adding the missing EOL causes problems. Setting 'binary' has too many side effects. Solution: Add the 'fixeol' option, default on. (Pavel Samarkin)
* patch 7.4.781v7.4.781Bram Moolenaar2015-07-121-1/+1
| | | | | Problem: line2byte() returns one less when 'bin' and 'noeol' are set. Solution: Only adjust the size for the last line. (Rob Wu)
* patch 7.4.730v7.4.730Bram Moolenaar2015-06-091-10/+38
| | | | | | | | Problem: When setting the crypt key and using a swap file, text may be encrypted twice or unencrypted text remains in the swap file. (Issue 369) Solution: Call ml_preserve() before re-encrypting. Set correct index for next pointer block.
* updated for version 7.4.684v7.4.684Bram Moolenaar2015-03-311-1/+1
| | | | | | Problem: When starting several Vim instances in diff mode, the temp files used may not be unique. (Issue 353) Solution: Add an argument to vim_tempname() to keep the file.
* updated for version 7.4.624v7.4.624Bram Moolenaar2015-02-101-0/+3
| | | | | Problem: May leak memory or crash when vim_realloc() returns NULL. Solution: Handle a NULL value properly. (Mike Williams)
* updated for version 7.4.403v7.4.403Bram Moolenaar2014-08-131-1/+32
| | | | | | Problem: Valgrind reports errors when running test 72. (Dominique Pelle) Solution: Reset the local 'cryptmethod' option before storing the seed. Set the seed in the memfile even when there is no block0 yet.
* updated for version 7.4.399v7.4.399Bram Moolenaar2014-08-101-40/+47
| | | | | | | | | Problem: Encryption implementation is messy. Blowfish encryption has a weakness. Solution: Refactor the encryption, store the state in an allocated struct instead of using a save/restore mechanism. Introduce the "blowfish2" method, which does not have the weakness and encrypts the whole undo file. (largely by David Leadbeater)
* updated for version 7.4.213v7.4.213Bram Moolenaar2014-03-231-2/+5
| | | | | | Problem: It's not possible to open a new buffer without creating a swap file. Solution: Add the ":noswapfile" modifier. (Christian Brabandt)
* updated for version 7.4.172v7.4.172Bram Moolenaar2014-02-111-1/+1
| | | | | | Problem: The blowfish code mentions output feedback, but the code is actually doing cipher feedback. Solution: Adjust names and comments.
* updated for version 7.4.108v7.4.108Bram Moolenaar2013-11-281-1/+4
| | | | | Problem: "zG" and "zW" leave temp files around on MS-Windows. Solution: Delete the temp files when exiting. (Ken Takata)
* updated for version 7.4.066v7.4.066Bram Moolenaar2013-11-041-13/+41
| | | | | | Problem: MS-Windows: When there is a colon in the file name (sub-stream feature) the swap file name is wrong. Solution: Change the colon to "%". (Yasuhiro Matsumoto)
* updated for version 7.3.925v7.3.925Bram Moolenaar2013-05-061-1/+1
| | | | | Problem: Typos in source files. Solution: Fix the typos. (Ken Takata)
* updated for version 7.3.677v7.3.677Bram Moolenaar2012-10-031-4/+2
| | | | | | Problem: buf_spname() is used inconsistently. Solution: Make the return type a char_u pointer. Check the size of the returned string.
* updated for version 7.3.349v7.3.349Bram Moolenaar2011-10-261-1/+8
| | | | | | Problem: When running out of memory during startup trying to open a swapfile will loop forever. Solution: Let findswapname() set dirp to NULL if out of memory.
* updated for version 7.3.216v7.3.216Bram Moolenaar2011-06-131-0/+1
| | | | | | Problem: When recovering a file a range of lines is missing. (Charles Jie) Solution: Reset the index when advancing to the next pointer block. Add a test to verify recovery works.
* updated for version 7.3.187v7.3.187Bram Moolenaar2011-05-101-35/+7
| | | | | Problem: The RISC OS port has obvious errors and is not being maintained. Solution: Remove the RISC OS files and code.
* updated for version 7.3.120v7.3.120Bram Moolenaar2011-02-151-3/+3
| | | | | | Problem: The message for an existing swap file is too long to fit in a 25 line terminal. Solution: Make the message shorter. (Chad Miller)
* updated for version 7.3.102v7.3.102Bram Moolenaar2011-01-171-1/+1
| | | | | | | | Problem: When using ":make", typing the next command and then getting the "reload" prompt the next command is (partly) eaten by the reload prompt. Solution: Accept ':' as a special character at the reload prompt to accept the default choice and execute the command.
* updated for version 7.3.087v7.3.087Bram Moolenaar2010-12-171-4/+0
| | | | | Problem: EINTR is not always defined. Solution: Include errno.h in vim.h.
* updated for version 7.3.085v7.3.085Bram Moolenaar2010-12-171-4/+0
| | | | | Problem: Inconsistency with preproc symbols. void * computation. Solution: Include vimio.h from vim.h. Add type cast.
* updated for version 7.3.083v7.3.083Bram Moolenaar2010-12-171-2/+2
| | | | | Problem: When a read() or write() is interrupted by a signal it fails. Solution: Add read_eintr() and write_eintr().
* updated for version 7.3.077v7.3.077Bram Moolenaar2010-12-081-5/+8
| | | | | | Problem: When updating crypt of swapfile fails there is no error message. (Carlo Teubner) Solution: Add the error message.
* Remove unused code.Bram Moolenaar2010-08-081-20/+0
|
* Fix: when setting crypt key seed was not updated when the swap file wasn'tBram Moolenaar2010-08-041-1/+1
| | | | created yet.
* Better fix for memory access in recovery. (Dominique Pelle)Bram Moolenaar2010-07-251-2/+4
|
* Fix memory access to 'cryptmethod' during recovery. (Dominique Pelle)Bram Moolenaar2010-07-251-2/+4
|