summaryrefslogtreecommitdiff
path: root/src/memline.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.1.1086: too many curly bracesv8.1.1086Bram Moolenaar2019-03-301-4/+0
| | | | | | Problem: Too many curly braces. Solution: Remove curly braces where they are not needed. (Hirohito Higashi, closes #3982)
* patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar2019-02-171-11/+11
| | | | | | | 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)
* patch 8.1.0826: too many #ifdefsv8.1.0826Bram Moolenaar2019-01-261-2/+0
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
* patch 8.1.0806: too many #ifdefsv8.1.0806Bram Moolenaar2019-01-241-12/+2
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 2.
* patch 8.1.0779: argument for message functions is inconsistentv8.1.0779Bram Moolenaar2019-01-191-69/+69
| | | | | Problem: Argument for message functions is inconsistent. Solution: Make first argument to msg() "char *".
* patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-37/+37
| | | | | | | | 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.
* patch 8.1.0688: text properties are not restored by undov8.1.0688Bram Moolenaar2019-01-041-12/+36
| | | | | Problem: Text properties are not restored by undo. Solution: Also save text properties for undo.
* patch 8.1.0684: warnings from 64-bit compilerv8.1.0684Bram Moolenaar2019-01-031-5/+5
| | | | | Problem: Warnings from 64-bit compiler. Solution: Add type casts. (Mike Williams)
* patch 8.1.0655: when appending a line text property flags are not addedv8.1.0655Bram Moolenaar2018-12-281-23/+99
| | | | | Problem: When appending a line text property flags are not added. Solution: Add text properties to a newly added line.
* patch 8.1.0654: when deleting a line text property flags are not adjustedv8.1.0654Bram Moolenaar2018-12-281-9/+141
| | | | | Problem: When deleting a line text property flags are not adjusted. Solution: Adjust text property flags in preceding and following lines.
* patch 8.1.0643: computing byte offset wrongv8.1.0643Bram Moolenaar2018-12-261-1/+1
| | | | | Problem: Computing byte offset wrong. (Bjorn Linse) Solution: Use the right variable for array index.
* patch 8.1.0642: swapinfo() leaks memoryv8.1.0642Bram Moolenaar2018-12-261-14/+8
| | | | | Problem: swapinfo() leaks memory. Solution: Avoid allocating the strings twice.
* patch 8.1.0636: line2byte() gives wrong values with text propertiesv8.1.0636Bram Moolenaar2018-12-251-11/+41
| | | | | | Problem: line2byte() gives wrong values with text properties. (Bjorn Linse) Solution: Compute byte offsets differently when text properties were added. (closes #3718)
* patch 8.1.0601: a few compiler warningsv8.1.0601Bram Moolenaar2018-12-161-3/+3
| | | | | Problem: A few compiler warnings. Solution: Add type casts. (Mike Williams)
* patch 8.1.0581: double free without the text properties featurev8.1.0581Bram Moolenaar2018-12-131-1/+1
| | | | | Problem: Double free without the text properties feature. Solution: Reset the dirty flag.
* patch 8.1.0579: cannot attach properties to textv8.1.0579Bram Moolenaar2018-12-131-21/+85
| | | | | Problem: Cannot attach properties to text. Solution: First part of adding text properties.
* patch 8.1.0501: cppcheck warns for using array index before bounds checkv8.1.0501Bram Moolenaar2018-10-301-2/+2
| | | | | Problem: Cppcheck warns for using array index before bounds check. Solution: Swap the conditions. (Dominique Pelle)
* patch 8.1.0473: user doesn't notice file does not exist when swap file doesv8.1.0473Bram Moolenaar2018-10-131-2/+6
| | | | | | Problem: User doesn't notice file does not exist when swap file does. Solution: Add a note that the file cannot be found. Make the "still running" notice stand out.
* patch 8.1.0466: autocmd test failsv8.1.0466Bram Moolenaar2018-10-071-1/+1
| | | | | Problem: Autocmd test fails. Solution: Do call inchar() when flushing typeahead.
* patch 8.1.0463: "simalt ~x" in .vimrc blocks swap file promptv8.1.0463Bram Moolenaar2018-10-071-7/+11
| | | | | | Problem: "simalt ~x" in .vimrc blocks swap file prompt. Solution: Flush buffers before prompting. (Yasuhiro Matsumoto, closes #3518, closes #2192)
* patch 8.1.0443: unnecessary static function prototypesv8.1.0443Bram Moolenaar2018-09-301-4/+0
| | | | | Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
* patch 8.1.0325: strings in swap file may not be NUL terminatedv8.1.0325Bram Moolenaar2018-08-231-4/+7
| | | | | Problem: Strings in swap file may not be NUL terminated. (Coverity) Solution: Limit the length of the used string.
* patch 8.1.0314: build failure without the +eval featurev8.1.0314Bram Moolenaar2018-08-211-6/+10
| | | | | Problem: Build failure without the +eval feature. (Brenton Horne) Solution: Add #ifdef. Also add the "dirty" item.
* patch 8.1.0313: information about a swap file is unavailablev8.1.0313Bram Moolenaar2018-08-211-0/+43
| | | | | Problem: Information about a swap file is unavailable. Solution: Add swapinfo(). (Enzo Ferber)
* patch 8.1.0310: file info msg not always suppressed with 'F' in 'shortmess'v8.1.0310Bram Moolenaar2018-08-211-1/+4
| | | | | | Problem: File info message not always suppressed with 'F' in 'shortmess'. (Asheq Imran) Solution: Save and restore msg_silent. (Christian Brabandt, closes #3221)
* patch 8.1.0303: line2byte() is wrong for last line with 'noeol'v8.1.0303Bram Moolenaar2018-08-201-1/+1
| | | | | Problem: line2byte() is wrong for last line with 'noeol' and 'nofixeol'. Solution: Fix off-by-one error. (Shane Harper, closes #3351)
* patch 8.1.0251: using full path is not supported for 'backupdir'v8.1.0251Bram Moolenaar2018-08-071-10/+5
| | | | | | Problem: Using a full path is supported for 'directory' but not for 'backupdir'. (Mikolaj Machowski) Solution: Support 'backupdir' as well. (Christian Brabandt, closes #179)
* patch 8.1.0023: gcc 8.1 warns for use of strncpy()v8.1.0023Bram Moolenaar2018-05-261-1/+1
| | | | | Problem: gcc 8.1 warns for use of strncpy(). (John Marriott) Solution: Use mch_memmove() instead of STRNCPY().
* patch 8.0.1819: swap file warning for file with non-existing directoryv8.0.1819Bram Moolenaar2018-05-121-5/+6
| | | | | | Problem: Swap file warning for a file in a non-existing directory, if there is another with the same file name. (Juergen Weigert) Solution: When expanding the file name fails compare the file names.
* patch 8.0.1688: some macros are used without a semicolonv8.0.1688Bram Moolenaar2018-04-101-2/+2
| | | | | | Problem: Some macros are used without a semicolon, causing auto-indent to be wrong. Solution: Use the do-while(0) trick. (Ozaki Kiichi, closes #2729)
* patch 8.0.1564: too many #ifdefsv8.0.1564Bram Moolenaar2018-03-041-4/+2
| | | | | | Problem: Too many #ifdefs. Solution: Graduate the +autocmd feature. Takes away 450 #ifdefs and increases code size of tiny Vim by only 40 Kbyte.
* patch 8.0.1496: clearing a pointer takes two linesv8.0.1496Bram Moolenaar2018-02-101-8/+4
| | | | | | Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629)
* patch 8.0.1363: recovering does not work when swap file ends in .stzv8.0.1363Bram Moolenaar2017-12-021-2/+3
| | | | | | Problem: Recovering does not work when swap file ends in .stz. Solution: Check for all possible swap file names. (Elfling, closes #2395, closes #2396)
* 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.