aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fold.c
Commit message (Collapse)AuthorAge
...
* lintJames McCoy2020-09-04
|
* vim-patch:8.2.1560: using NULL pointers in some codeJames McCoy2020-09-04
| | | | | | | | | Problem: Using NULL pointers in some code. (James McCoy) Solution: Avoid adding to a NULL pointer. Use byte as unsigned. https://github.com/vim/vim/commit/9c2b06637b32742cac11bfd66b1a4e84583c6c2e The changes to eval.c (skip_expr_concatenate) and vim9compile.c aren't included since they're specific to vim9script support.
* vim-patch:8.2.1553: crash in edit testJames McCoy2020-09-04
| | | | | | Problem: Crash in edit test. Solution: Avoid using invalid pointer. https://github.com/vim/vim/commit/2c93c685e3334c50d9a748ad699df727a4501b08
* vim-patch:8.2.1552: warnings from asan with clang-11James McCoy2020-09-03
| | | | | | Problem: Warnings from asan with clang-11. (James McCoy) Solution: Avoid using a NULL pointer. (issue vim/vim#6811) https://github.com/vim/vim/commit/64f37d309025a65210dbc33823ec9ec5d547775f
* vim-patch:8.2.1561: using NULL pointers in fold codeJan Edmund Lazo2020-09-02
| | | | | | | Problem: Using NULL pointers in fold code. Solution: Avoid using a NULL pointer. (Dominique Pellé, closes vim/vim#6831, closes vim/vim#6831) https://github.com/vim/vim/commit/81fcb67fb32a12414512b72e691a1bbbff9f8511
* vim-patch:8.2.1554: crash in normal testJan Edmund Lazo2020-09-02
| | | | | | Problem: Crash in normal test. Solution: Skip adjusting marks if there are no folds. https://github.com/vim/vim/commit/07e87e9eb5e7195d47d47c0ca752b6c8372a99ea
* lint: fix linting issuesMatthieu Coudron2020-04-24
|
* extmark: introduce extmark_splice_colsMatthieu Coudron2020-04-24
| | | | to ease up notations.
* folds: decrease reliance on global 'curwin'Matthieu Coudron2020-04-24
| | | | | | TODO in a future commit: - remains 2 instances of changed_lines that dont take into account buffer
* folds: decrease reliance on global "curwin" (#12132)Matthieu Coudron2020-04-16
| | | | | | | | Pass the window in which to create/delete folds instead of using the global "curwin" (current window). Preliminary work for a fold API. TODO: I kept changed_lines prototype unchanged. This should be updated when a fold API sees the light.
* foldcolumn: allow auto:XMatthieu Coudron2020-02-29
| | | | | | | | Similar to signcolumn, allow foldcolumn to adapt itself to the number of folds. Regression: vim supports a maximum fdc of 12, this limits it to 9.
* refactor: move session functions to ex_session.cJustin M. Keyes2020-01-28
|
* shed biking: it's always extmarks, never marks extendedBjörn Linse2020-01-20
|
* extmarks/bufhl: reimplement using new marktree data structureBjörn Linse2020-01-16
| | | | | | | | | | | | | | | | | | | | Add new "splice" interface for tracking buffer changes at the byte level. This will later be reused for byte-resolution buffer updates. (Implementation has been started, but using undocumented "_on_bytes" option now as interface hasn't been finalized). Use this interface to improve many edge cases of extmark adjustment. Changed tests indicate previously incorrect behavior. Adding tests for more edge cases will be follow-up work (overlaps on_bytes tests) Don't consider creation/deletion of marks an undoable event by itself. This behavior was never documented, and imposes complexity for little gain. Add nvim__buf_add_decoration temporary API for direct access to the new implementation. This should be refactored into a proper API for decorations, probably involving a huge dict. fixes #11598
* vim-patch:8.1.1922: in diff mode global operations can be very slowJan Edmund Lazo2019-11-16
| | | | | | | 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. https://github.com/vim/vim/commit/4f57eefe1e84b5a90e08474092ea6fc8825ad5c9
* vim-patch:8.1.1890: ml_get error when deleting fold markerJan Edmund Lazo2019-08-19
| | | | | | | | 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 vim/vim#4834) https://github.com/vim/vim/commit/9a4a8c4d5993c6371486c895a515c2ad351e9aaa
* includesDaniel Hahler2019-08-07
|
* api: allow nvim_buf_attach from lua using callbacksBjörn Linse2019-06-04
|
* vim-patch:8.1.0527: using 'shiftwidth' from wrong buffer for folding (#9234)Jan Edmund Lazo2018-11-15
| | | | | Problem: Using 'shiftwidth' from wrong buffer for folding. Solution: Use "buf" instead of "curbuf". (Christian Brabandt) https://github.com/vim/vim/commit/0c27cbcacf0f58ad30f0b15d1f442f73f40347c2
* globals: KeyTyped is boolJan Edmund Lazo2018-09-14
|
* Merge #8744 from janlazo/vim-8.0.0890Justin M. Keyes2018-08-08
|\
| * memline: copy in ml_replace() is boolJan Edmund Lazo2018-08-07
| |
* | style: fixing minor issues noted in code review.ZviRackover2018-08-06
| |
* | lint: clean-up after parent commitZviRackover2018-08-06
| |
* | Remove all occurences of the mb_ptr2char macroZviRackover2018-08-06
|/ | | | | | | First step towards implemening issue #7401. The same can be done for all deprecated mb_ functions in follow-up patches.
* fold: add const to foldSplit() variablesJan Edmund Lazo2018-08-02
|
* fold: add const to foldUpdateIEMSRecurse() varsJan Edmund Lazo2018-08-02
|
* fold: add const to foldUpdateIEMS() variablesJan Edmund Lazo2018-08-02
|
* fold: add const to checkSmall() variablesJan Edmund Lazo2018-08-02
|
* fold: declare and init vars in deleteFoldEntry()Jan Edmund Lazo2018-08-02
| | | | Use sizeof() on pointer value, not explicit type, for memmove.
* fold: add const to foldMoveTo() variablesJan Edmund Lazo2018-08-02
| | | | Declare and initialize variables on same line if possible.
* fold: add const to deleteFold() variablesJan Edmund Lazo2018-08-02
| | | | Declare and initialize variables on same line if possible.
* fold: add const to hasFoldingWin() variablesJan Edmund Lazo2018-08-02
| | | | cache is bool so update callers to pass true/false, not TRUE/FALSE.
* fold: use_level,maybe_small are boolJan Edmund Lazo2018-08-01
| | | | use_levelp, maybe_smallp in check_closed() are bool ptrs.
* fold: recursive in deleteFoldEntry() is boolJan Edmund Lazo2018-08-01
|
* fold: fold_changed is boolJan Edmund Lazo2018-08-01
|
* fold: finish in foldUpdateIEMSRecurse() is boolJan Edmund Lazo2018-08-01
|
* fold: lineFolded() is boolJan Edmund Lazo2018-08-01
|
* fold: check_closed() returns boolJan Edmund Lazo2018-08-01
| | | | | | | Update affected variables (ie. had_folded). Add const to params to restrict usage. TODO: refactor win_T.w_lines[idx].wl_folded from char to bool
* fold: fold_T.fd_small is TriStateJan Edmund Lazo2018-08-01
|
* vim-patch:8.0.0{469,581,583} (#8601)Jan Edmund Lazo2018-06-20
| | | | | | | | | | | | | | | | | vim-patch:8.0.0469: compiler warnings on MS-Windows Problem: Compiler warnings on MS-Windows. Solution: Add type casts. (Christian Brabandt) https://github.com/vim/vim/commit/0c0d4eca4dd6252f22ec39f2d561a5e8a68e9a4e vim-patch:8.0.0581: moving folded text is sometimes not correct Problem: Moving folded text is sometimes not correct. Solution: Bail out when "move_end" is zero. (Matthew Malcomson) https://github.com/vim/vim/commit/94be619e30e82d28cadeea5e0766c6f5c321ff8b vim-patch:8.0.0583: fold test hangs on MS-Windows Problem: Fold test hangs on MS-Windows. Solution: Avoid overflow in compare. https://github.com/vim/vim/commit/b11c826ddc459813f9f991cdb8e8736b686a6328
* vim-patch:8.0.0451: some macros are in lower caseJan Edmund Lazo2018-06-12
| | | | | | | Problem: Some macros are in lower case. Solution: Make a few more macros upper case. Avoid lower case macros use an argument twice. https://github.com/vim/vim/commit/91acfffc1e6c0d8c2abfb186a0e79a5bf19c3f3f
* vim-patch:8.0.0452: some macros are in lower case (#8505)Jan Edmund Lazo2018-06-08
| | | | | Problem: Some macros are in lower case. Solution: Make a few more macros upper case. https://github.com/vim/vim/commit/1c46544412382db8b3203d6c78e550df885540bd
* Merge #7917 'API: buffer updates'Justin M. Keyes2018-06-08
|\
| * Rename some more, fixe borked renamingKillTheMule2018-05-23
| |
| * LintKillTheMule2018-05-23
| |
| * Some renamings and doc changesKillTheMule2018-05-23
| |
| * Enable -WconversionKillTheMule2018-05-23
| |
| * The grand renamingKillTheMule2018-05-23
| |
| * API: Implement buffer updatesPeter Hodge2018-05-23
| | | | | | | | | | Originally written by @phodge in https://github.com/neovim/neovim/pull/5269.