summaryrefslogtreecommitdiffstats
path: root/src/fold.c
AgeCommit message (Collapse)Author
2020-06-24patch 8.2.1049: Vim9: leaking memory when using continuation linev8.2.1049Bram Moolenaar
Problem: Vim9: leaking memory when using continuation line. Solution: Keep a pointer to the continuation line in evalarg_T. Centralize checking for a next command.
2019-12-01patch 8.1.2379: using old C style commentsv8.1.2379Bram Moolenaar
Problem: Using old C style comments. Solution: Use // comments where appropriate.
2019-09-28patch 8.1.2096: too many #ifdefsv8.1.2096Bram Moolenaar
Problem: Too many #ifdefs. Solution: Graduate FEAT_COMMENTS.
2019-09-01patch 8.1.1960: fold code is spread outv8.1.1960Bram Moolenaar
Problem: Fold code is spread out. Solution: Move fold functions to fold.c.
2019-08-24patch 8.1.1922: in diff mode global operations can be very slowv8.1.1922Bram Moolenaar
Problem: In diff mode global operations can be very slow. Solution: Do not call diff_redraw() many times, call it once when redrawing. And also don't update folds multiple times.
2019-08-19patch 8.1.1890: ml_get error when deleting fold markerv8.1.1890Bram Moolenaar
Problem: Ml_get error when deleting fold marker. Solution: Check that the line number is not below the last line. Adjust the fold when deleting the empty line. (Christian Brabandt, closes #4834)
2019-05-24patch 8.1.1384: using "int" for alloc() often results in compiler warningsv8.1.1384Bram Moolenaar
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.
2019-01-24patch 8.1.0805: too many #ifdefsv8.1.0805Bram Moolenaar
Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 1.
2019-01-13patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar
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.
2018-11-14patch 8.1.0527: using 'shiftwidth' from wrong buffer for foldingv8.1.0527Bram Moolenaar
Problem: Using 'shiftwidth' from wrong buffer for folding. Solution: Use "buf" instead of "curbuf". (Christian Brabandt)
2017-09-16patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefsv8.0.1118Bram Moolenaar
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.
2017-04-23patch 8.0.0583: fold test hangs on MS-Windowsv8.0.0583Bram Moolenaar
Problem: Fold test hangs on MS-Windows. Solution: Avoid overflow in compare.
2017-04-22patch 8.0.0581: moving folded text is sometimes not correctv8.0.0581Bram Moolenaar
Problem: Moving folded text is sometimes not correct. Solution: Bail out when "move_end" is zero. (Matthew Malcomson)
2017-03-23patch 8.0.0503: endless loop in updating folds with 32 bit intsv8.0.0503Bram Moolenaar
Problem: Endless loop in updating folds with 32 bit ints. Solution: Subtract from LHS instead of add to the RHS. (Matthew Malcomson)
2017-03-16patch 8.0.0469: compiler warnings on MS-Windowsv8.0.0469Bram Moolenaar
Problem: Compiler warnings on MS-Windows. Solution: Add type casts. (Christian Brabandt)
2017-03-16patch 8.0.0465: off-by-one error in using :move with foldingv8.0.0465Bram Moolenaar
Problem: Off-by-one error in using :move with folding. Solution: Correct off-by-one mistakes and add more tests. (Matthew Malcomson)
2017-03-16patch 8.0.0461: test 45 hangs on MS-Windowsv8.0.0461Bram Moolenaar
Problem: Test 45 hangs on MS-Windows. Solution: Reset 'shiftwidth'. Also remove redundent function.
2017-03-14patch 8.0.0457: using :move messes up manual foldsv8.0.0457Bram Moolenaar
Problem: Using :move messes up manual folds. Solution: Split adjusting marks and folds. Add foldMoveRange(). (neovim patch #6221)
2017-03-12patch 8.0.0453: adding fold marker creates new commentv8.0.0453Bram Moolenaar
Problem: Adding fold marker creates new comment. Solution: Use an existing comment if possible. (LemonBoy, closes #1549)
2017-03-12patch 8.0.0452: some macros are in lower casev8.0.0452Bram Moolenaar
Problem: Some macros are in lower case. Solution: Make a few more macros upper case.
2017-03-12patch 8.0.0451: some macros are in lower casev8.0.0451Bram Moolenaar
Problem: Some macros are in lower case. Solution: Make a few more macros upper case. Avoid lower case macros use an argument twice.
2017-03-12patch 8.0.0448: some macros are in lower casev8.0.0448Bram Moolenaar
Problem: Some macros are in lower case, which can be confusing. Solution: Make a few lower case macros upper case.
2017-03-04patch 8.0.0408: updating folds does not always work properlyv8.0.0408Bram Moolenaar
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)
2017-02-28patch 8.0.0388: filtering lines changes foldsv8.0.0388Bram Moolenaar
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.
2016-08-29patch 7.4.2293v7.4.2293Bram Moolenaar
Problem: Modelines in source code are inconsistant. Solution: Use the same line in most files. Add 'noet'. (Naruhiko Nishino)
2016-08-03patch 7.4.2152v7.4.2152Bram Moolenaar
Problem: No proper translation of messages with a count. Solution: Use ngettext(). (Sergey Alyoshin)
2016-07-01patch 7.4.1976v7.4.1976Bram Moolenaar
Problem: Number variables are not 64 bits while they could be. Solution: Add the num64 feature. (Ken Takata)
2016-06-08patch 7.4.1909v7.4.1909Bram Moolenaar
Problem: Doubled semicolons. Solution: Reduce to one. (Dominique Pelle)
2016-04-14patch 7.4.1732v7.4.1732Bram Moolenaar
Problem: Folds may close when using autocomplete. (Anmol Sethi) Solution: Increment/decrement disable_fold. (Christian Brabandt, closes #643)
2016-01-30patch 7.4.1207v7.4.1207Bram Moolenaar
Problem: Using old style function declarations. Solution: Change to new style function declarations. (script by Hirohito Higashi)
2016-01-29patch 7.4.1200v7.4.1200Bram Moolenaar
Problem: Still using __ARGS. Solution: Remove __ARGS in several files. (script by Hirohito Higashi)
2016-01-29patch 7.4.1197v7.4.1197Bram Moolenaar
Problem: Still using __ARGS. Solution: Remove __ARGS in several files. (script by Hirohito Higashi)
2015-08-11patch 7.4.822v7.4.822Bram Moolenaar
Problem: More problems reported by coverity. Solution: Avoid the warnings. (Christian Brabandt)
2015-04-15patch 7.4.700v7.4.700Bram Moolenaar
Problem: Fold can't be opened after ":move". (Ein Brown) Solution: Delete the folding information and update it afterwards. (Christian Brabandt)
2015-04-13patch 7.4.699v7.4.699Bram Moolenaar
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)
2014-03-23updated for version 7.4.212v7.4.212Bram Moolenaar
Problem: Now that the +visual feature is always enabled the #ifdefs for it are not useful. Solution: Remove the checks for FEAT_VISUAL.
2013-11-05updated for version 7.4.069v7.4.069Bram Moolenaar
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.
2013-06-15updated for version 7.3.1199v7.3.1199Bram Moolenaar
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)
2012-08-29updated for version 7.3.641v7.3.641Bram Moolenaar
Problem: ":mkview" uses ":normal" instead of ":normal!" for folds. (Dan) Solution: Add the bang. (Christian Brabandt)
2012-08-08updated for version 7.3.629v7.3.629Bram Moolenaar
Problem: There is no way to make 'shiftwidth' follow 'tabstop'. Solution: When 'shiftwidth' is zero use the value of 'tabstop'. (Christian Brabandt)
2012-02-29updated for version 7.3.462v7.3.462Bram Moolenaar
Problem: When using ":loadview" folds may be closed unexpectedly. Solution: Take into account foldlevel. (Xavier de Gaye)
2012-01-10updated for version 7.3.400v7.3.400Bram Moolenaar
Problem: Compiler warnings for shadowed variables. Solution: Remove or rename the variables.
2011-08-26updated for version 7.3.286v7.3.286Bram Moolenaar
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.
2010-06-22Fix compiler warnings for shadowed variables. Make 'conceal' a long insteadBram Moolenaar
of int.
2010-03-17updated for version 7.2.397v7.2.397Bram Moolenaar
Problem: Redundant check for w_lines_valid. Solution: Remove the if. (Lech Lorens)
2010-02-24updated for version 7.2.370v7.2.370Bram Moolenaar
Problem: A redraw may cause folds to be closed. Solution: Revert part of the previous patch. Add a test. (Lech Lorens)
2010-02-03updated for version 7.2.356v7.2.356Bram Moolenaar
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)
2010-01-19updated for version 7.2.340v7.2.340Bram Moolenaar
Problem: Gcc warning for condition that can never be true. (James Vega) Solution: Use start_lvl instead flp->lvl.
2009-11-03updated for version 7.2-282v7.2.282Bram Moolenaar
2009-11-03updated for version 7.2-278v7.2.278Bram Moolenaar