neovim/runtime
Gregory Anders 2abc799ffd fix(diagnostic): deepcopy diagnostics before clamping line numbers
The current 'clamp_line_numbers' implementation modifies diagnostics in
place, which can have adverse downstream side effects. Before clamping
line numbers, make a copy of the diagnostic. This commit also merges the
'clamp_line_numbers' method into a new 'get_diagnostics' local function
which also implements the more general "get" method. The public
'vim.diagnostic.get()' API now just uses this function (without
clamping). This has the added benefit that other internal API functions
that need to use get() no longer have to go through vim.validate.

Finally, reorganize the source code a bit by grouping all of the data
structures together near the top of the file.
2021-11-19 11:37:45 -07:00
..
autoload vim-patch:519cc559b08b (#16340) 2021-11-17 10:02:59 +01:00
colors
compiler vim-patch:6c391a74fe90 (#15654) 2021-09-13 16:33:41 +02:00
doc docs: regenerate 2021-11-18 21:50:55 +00:00
ftplugin vim-patch:519cc559b08b (#16340) 2021-11-17 10:02:59 +01:00
indent vim-patch:partial 113cb513f76d (#16260) 2021-11-08 00:10:44 +01:00
keymap vim-patch:6c391a74fe90 (#15654) 2021-09-13 16:33:41 +02:00
lua fix(diagnostic): deepcopy diagnostics before clamping line numbers 2021-11-19 11:37:45 -07:00
macros
pack/dist/opt vim-patch:519cc559b08b (#16340) 2021-11-17 10:02:59 +01:00
plugin vim-patch:519cc559b08b (#16340) 2021-11-17 10:02:59 +01:00
print
queries/c
spell
syntax vim-patch:519cc559b08b (#16340) 2021-11-17 10:02:59 +01:00
tools
tutor fix(tutor): formatting, layout #15098 2021-08-30 05:27:35 -07:00
bugreport.vim
CMakeLists.txt build(install): rescan GLOB files on rebuild 2021-10-18 11:44:15 +02:00
delmenu.vim
filetype.vim vim-patch:519cc559b08b (#16340) 2021-11-17 10:02:59 +01:00
ftoff.vim
ftplugin.vim
ftplugof.vim
indent.vim
indoff.vim
macmap.vim
makemenu.vim
menu.vim
mswin.vim
nvim.appdata.xml version bump 2021-07-02 18:12:11 +02:00
nvim.desktop
nvim.png
optwin.vim vim-patch:8.1.2019: 'cursorline' always highlights the whole line (#15161) 2021-07-30 21:51:26 -04:00
rgb.txt
scripts.vim vim-patch:8.2.3603: fish filetype not recognized (#16337) 2021-11-16 18:26:03 +01:00
synmenu.vim