| Commit message (Collapse) | Author | Age |
... | |
|
|
| |
Apply "redundant cast to the same type" fix from clangd.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Problem: Crash when using undo after deleting folded lines.
Solution: Check for NULL pointer. (closes vim/vim#6968)
https://github.com/vim/vim/commit/da697645d5917eb3d4168c06c3442bef9fb746bf
|
|
|
|
|
|
| |
Problem: 'foldlevel' not applied to folds restored from session.
Solution: Set 'foldlevel' after creaiting the folds. (closes vim/vim#7767)
https://github.com/vim/vim/commit/f9547eb6ef02e305203b859d2dcfdae930b9d544
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Problem: Crash with a sequence of fold commands.
Solution: Bail out when there are no folds at all. Add a test (Dominique
Pellé) (closes vim/vim#7515)
https://github.com/vim/vim/commit/6a78f328442073c32d58eafc13ce5a1ca7729eeb
N/A patches for version.c:
vim-patch:8.2.2174: Mac version doesn't specify the CPU architecture
Problem: Mac version doesn't specify the CPU architecture.
Solution: Add "arm64" or "x86_64". (Yee Cheng Chin, closes vim/vim#7519)
https://github.com/vim/vim/commit/8c9d98a8af5351a3ac98cf11dede9f0268461511
vim-patch:8.2.2175: github actions: clang-11 handling suboptimal
Problem: Github actions: clang-11 handling suboptimal.
Solution: Separate step of installing clang-11. Get ubuntu release name
dynamically. (Ozaki Kiichi, closes vim/vim#7514)
https://github.com/vim/vim/commit/9aff970204234193045cfee205d51e2393e93bfd
|
|
|
|
|
|
| |
working on get_foldtext and wanted to get rid of the curwin backup/restore.
Turns out it's not possible else f_foldtext is run on the same window.
Kept the cleanup anyway.
|
|
|
|
|
|
| |
Problem: Too many #ifdefs.
Solution: Graduate FEAT_MBYTE, part 1.
https://github.com/vim/vim/commit/135059724f140ceac889c9f8136bd1bf5c41d49d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Problem: Crash when recreating nested fold.
Solution: Check for empty growarray. (closes vim/vim#7278)
https://github.com/vim/vim/commit/5e1f22ff614821b8fc7294c9dd22765acd403aeb
N/A patches for version.c:
vim-patch:8.2.1974: Vim9: test for has('gui_running') fails with VIMDLL
Problem: Vim9: test for has('gui_running') fails with VIMDLL.
Solution: Adjust the #ifdef. (Ken Takata, closes vim/vim#7276)
https://github.com/vim/vim/commit/29b281ba8ddf176ae34b22e6a9b8e0ddcbcce665
|
|
|
|
|
| |
Problem: Crash when using "zj" without folds. (Sean Dewar)
Solution: Check for at least one fold. (closes vim/vim#7245)
https://github.com/vim/vim/commit/c136a3528b7ebb825c3863d701af44f023381181
|
|
|
|
|
|
|
|
|
|
| |
co-author: hlpr98 <hlpr98@gmail.com> (dict2hlattrs function)
orange is sus??
NOVEMBER DAWN
erase the lie that is redraw_later()
|
|
|
|
|
| |
useful if we want to have inline folds later and/or let users create
folds that remember their start/end columns.
|
| |
|
|
|
|
| |
as the byte logic will be the same for all of these
|
|
|
|
|
|
|
|
|
|
|
| |
UBSAN with clang 10.0 is checking for adding offsets to a `NULL` pointer
which is not allowed. This is not yet checked in the version of clang
used in CI (7.0.0). I will work on cases of this so that tests passes
locally for me.
This could be tested in CI by either upgrading the clang of the
ASAN/UBSAN to 10.0, or add yet another CI target which builds with
clang 10.0.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Problem: Crash in edit test.
Solution: Avoid using invalid pointer.
https://github.com/vim/vim/commit/2c93c685e3334c50d9a748ad699df727a4501b08
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Problem: Crash in normal test.
Solution: Skip adjusting marks if there are no folds.
https://github.com/vim/vim/commit/07e87e9eb5e7195d47d47c0ca752b6c8372a99ea
|
| |
|
|
|
|
| |
to ease up notations.
|
|
|
|
|
|
| |
TODO in a future commit:
- remains 2 instances of changed_lines that dont take into account
buffer
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
| |
Problem: Using 'shiftwidth' from wrong buffer for folding.
Solution: Use "buf" instead of "curbuf". (Christian Brabandt)
https://github.com/vim/vim/commit/0c27cbcacf0f58ad30f0b15d1f442f73f40347c2
|
| |
|
|\ |
|
| | |
|
| | |
|
| | |
|
|/
|
|
|
|
|
| |
First step towards implemening issue #7401.
The same can be done for all deprecated mb_ functions in follow-up
patches.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Use sizeof() on pointer value, not explicit type, for memmove.
|
|
|
|
| |
Declare and initialize variables on same line if possible.
|
|
|
|
| |
Declare and initialize variables on same line if possible.
|
|
|
|
| |
cache is bool so update callers to pass true/false, not TRUE/FALSE.
|
|
|
|
| |
use_levelp, maybe_smallp in check_closed() are bool ptrs.
|