summaryrefslogtreecommitdiff
path: root/src/fold.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.1.1384: using "int" for alloc() often results in compiler warningsv8.1.1384Bram Moolenaar2019-05-241-2/+2
| | | | | | 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.0805: too many #ifdefsv8.1.0805Bram Moolenaar2019-01-241-4/+0
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 1.
* patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-7/+7
| | | | | | | | 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.0527: using 'shiftwidth' from wrong buffer for foldingv8.1.0527Bram Moolenaar2018-11-141-1/+2
| | | | | Problem: Using 'shiftwidth' from wrong buffer for folding. Solution: Use "buf" instead of "curbuf". (Christian Brabandt)
* patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefsv8.0.1118Bram Moolenaar2017-09-161-2/+1
| | | | | | 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.0583: fold test hangs on MS-Windowsv8.0.0583Bram Moolenaar2017-04-231-2/+4
| | | | | Problem: Fold test hangs on MS-Windows. Solution: Avoid overflow in compare.
* patch 8.0.0581: moving folded text is sometimes not correctv8.0.0581Bram Moolenaar2017-04-221-3/+7
| | | | | Problem: Moving folded text is sometimes not correct. Solution: Bail out when "move_end" is zero. (Matthew Malcomson)
* patch 8.0.0503: endless loop in updating folds with 32 bit intsv8.0.0503Bram Moolenaar2017-03-231-1/+1
| | | | | Problem: Endless loop in updating folds with 32 bit ints. Solution: Subtract from LHS instead of add to the RHS. (Matthew Malcomson)
* patch 8.0.0469: compiler warnings on MS-Windowsv8.0.0469Bram Moolenaar2017-03-161-3/+5
| | | | | Problem: Compiler warnings on MS-Windows. Solution: Add type casts. (Christian Brabandt)
* patch 8.0.0465: off-by-one error in using :move with foldingv8.0.0465Bram Moolenaar2017-03-161-4/+5
| | | | | | Problem: Off-by-one error in using :move with folding. Solution: Correct off-by-one mistakes and add more tests. (Matthew Malcomson)
* patch 8.0.0461: test 45 hangs on MS-Windowsv8.0.0461Bram Moolenaar2017-03-161-11/+4
| | | | | Problem: Test 45 hangs on MS-Windows. Solution: Reset 'shiftwidth'. Also remove redundent function.
* patch 8.0.0457: using :move messes up manual foldsv8.0.0457Bram Moolenaar2017-03-141-0/+183
| | | | | | Problem: Using :move messes up manual folds. Solution: Split adjusting marks and folds. Add foldMoveRange(). (neovim patch #6221)
* patch 8.0.0453: adding fold marker creates new commentv8.0.0453Bram Moolenaar2017-03-121-1/+7
| | | | | Problem: Adding fold marker creates new comment. Solution: Use an existing comment if possible. (LemonBoy, closes #1549)
* patch 8.0.0452: some macros are in lower casev8.0.0452Bram Moolenaar2017-03-121-5/+5
| | | | | Problem: Some macros are in lower case. Solution: Make a few more macros upper case.
* patch 8.0.0451: some macros are in lower casev8.0.0451Bram Moolenaar2017-03-121-2/+2
| | | | | | 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.0448: some macros are in lower casev8.0.0448Bram Moolenaar2017-03-121-1/+1
| | | | | Problem: Some macros are in lower case, which can be confusing. Solution: Make a few lower case macros upper case.
* patch 8.0.0408: updating folds does not always work properlyv8.0.0408Bram Moolenaar2017-03-041-10/+54
| | | | | | Problem: Updating folds does not work properly when inserting a file and a few other situations. Solution: Adjust the way folds are updated. (Matthew Malcomson)
* patch 8.0.0388: filtering lines changes foldsv8.0.0388Bram Moolenaar2017-02-281-3/+10
| | | | | | | Problem: filtering lines through "cat", without changing the line count, changes manual folds. Solution: Change how marks and folds are adjusted. (Matthew Malcomson, from neovim #6194.
* 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.2152v7.4.2152Bram Moolenaar2016-08-031-4/+8
| | | | | Problem: No proper translation of messages with a count. Solution: Use ngettext(). (Sergey Alyoshin)
* patch 7.4.1976v7.4.1976Bram Moolenaar2016-07-011-1/+1
| | | | | Problem: Number variables are not 64 bits while they could be. Solution: Add the num64 feature. (Ken Takata)
* patch 7.4.1909v7.4.1909Bram Moolenaar2016-06-081-1/+1
| | | | | Problem: Doubled semicolons. Solution: Reduce to one. (Dominique Pelle)
* patch 7.4.1732v7.4.1732Bram Moolenaar2016-04-141-0/+3
| | | | | | Problem: Folds may close when using autocomplete. (Anmol Sethi) Solution: Increment/decrement disable_fold. (Christian Brabandt, closes #643)
* patch 7.4.1207v7.4.1207Bram Moolenaar2016-01-301-232/+142
| | | | | | Problem: Using old style function declarations. Solution: Change to new style function declarations. (script by Hirohito Higashi)
* patch 7.4.1200v7.4.1200Bram Moolenaar2016-01-291-3/+3
| | | | | Problem: Still using __ARGS. Solution: Remove __ARGS in several files. (script by Hirohito Higashi)
* patch 7.4.1197v7.4.1197Bram Moolenaar2016-01-291-34/+34
| | | | | Problem: Still using __ARGS. Solution: Remove __ARGS in several files. (script by Hirohito Higashi)
* patch 7.4.822v7.4.822Bram Moolenaar2015-08-111-2/+2
| | | | | Problem: More problems reported by coverity. Solution: Avoid the warnings. (Christian Brabandt)
* patch 7.4.700v7.4.700Bram Moolenaar2015-04-151-2/+2
| | | | | | Problem: Fold can't be opened after ":move". (Ein Brown) Solution: Delete the folding information and update it afterwards. (Christian Brabandt)
* patch 7.4.699v7.4.699Bram Moolenaar2015-04-131-0/+2
| | | | | | Problem: E315 when trying to delete a fold. (Yutao Yuan) Solution: Make sure the fold doesn't go beyond the last buffer line. (Christian Brabandt)
* updated for version 7.4.212v7.4.212Bram Moolenaar2014-03-231-6/+0
| | | | | | Problem: Now that the +visual feature is always enabled the #ifdefs for it are not useful. Solution: Remove the checks for FEAT_VISUAL.
* updated for version 7.4.069v7.4.069Bram Moolenaar2013-11-051-1/+1
| | | | | | | Problem: Cannot right shift lines starting with #. Solution: Allow the right shift when 'cino' contains #N with N > 0. (Christian Brabandt) Refactor parsing 'cino', store the values in the buffer.
* updated for version 7.3.1199v7.3.1199Bram Moolenaar2013-06-151-9/+36
| | | | | | | Problem: When evaluating 'foldexpr' causes an error this is silently ignored and evaluation is retried every time. Solution: Set emsg_silent instead of emsg_off. Stop evaluating 'foldexpr' is it is causing errors. (Christian Brabandt)
* updated for version 7.3.641v7.3.641Bram Moolenaar2012-08-291-2/+2
| | | | | Problem: ":mkview" uses ":normal" instead of ":normal!" for folds. (Dan) Solution: Add the bang. (Christian Brabandt)
* updated for version 7.3.629v7.3.629Bram Moolenaar2012-08-081-1/+1
| | | | | | Problem: There is no way to make 'shiftwidth' follow 'tabstop'. Solution: When 'shiftwidth' is zero use the value of 'tabstop'. (Christian Brabandt)
* updated for version 7.3.462v7.3.462Bram Moolenaar2012-02-291-11/+47
| | | | | Problem: When using ":loadview" folds may be closed unexpectedly. Solution: Take into account foldlevel. (Xavier de Gaye)
* updated for version 7.3.400v7.3.400Bram Moolenaar2012-01-101-3/+3
| | | | | Problem: Compiler warnings for shadowed variables. Solution: Remove or rename the variables.
* updated for version 7.3.286v7.3.286Bram Moolenaar2011-08-261-3/+6
| | | | | | Problem: Crash when using "zd" on a large number of folds. (Sam King) Solution: Recompute pointer after reallocating array. Move fewer entries when making room.
* Fix compiler warnings for shadowed variables. Make 'conceal' a long insteadBram Moolenaar2010-06-221-7/+7
| | | | of int.
* updated for version 7.2.397v7.2.397Bram Moolenaar2010-03-171-9/+8
| | | | | Problem: Redundant check for w_lines_valid. Solution: Remove the if. (Lech Lorens)
* updated for version 7.2.370v7.2.370Bram Moolenaar2010-02-241-6/+0
| | | | | Problem: A redraw may cause folds to be closed. Solution: Revert part of the previous patch. Add a test. (Lech Lorens)
* updated for version 7.2.356v7.2.356Bram Moolenaar2010-02-031-1/+7
| | | | | | Problem: When 'foldmethod' is changed not all folds are closed as expected. Solution: In foldUpdate() correct the start position and reset fd_flags when w_foldinvalid is set. (Lech Lorens)
* updated for version 7.2.340v7.2.340Bram Moolenaar2010-01-191-2/+2
| | | | | Problem: Gcc warning for condition that can never be true. (James Vega) Solution: Use start_lvl instead flp->lvl.
* updated for version 7.2-282v7.2.282Bram Moolenaar2009-11-031-0/+2
|
* updated for version 7.2-278v7.2.278Bram Moolenaar2009-11-031-3/+3
|
* updated for version 7.2-274v7.2.274Bram Moolenaar2009-11-031-0/+34
|
* updated for version 7.2-261v7.2.261Bram Moolenaar2009-09-181-4/+8
|
* updated for version 7.2-078v7.2.078Bram Moolenaar2009-01-061-6/+12
|
* updated for version 7.2-055v7.2.055Bram Moolenaar2008-11-281-4/+4
|
* updated for version 7.2c-000v7.2c.000Bram Moolenaar2008-08-061-1/+1
|
* updated for version 7.2av7.2aBram Moolenaar2008-06-241-1/+1
|