Gregory Anders
02fd00c042
feat(runtime): include Lua in C++ ftplugin ( #17843 )
2022-03-24 08:05:13 -06:00
bfredl
b438251a0e
Merge pull request #17838 from zeertzjq/ci-docgen-no-src-lua
...
ci: remove src/nvim/**.lua from docgen pattern
2022-03-24 14:20:03 +01:00
zeertzjq
3b28bd57f9
Merge pull request #17821 from zeertzjq/vim-patch-cursorline
...
vim-patch:8.2.{4591,4614}: cursorline redrawing
2022-03-24 20:28:46 +08:00
bfredl
1194856b31
Merge pull request #17740 from dundargoc/doxygen/memline
...
refactor(memline): convert function comments to doxygen format
2022-03-24 13:15:20 +01:00
zeertzjq
4a11c7e56f
chore(nvim_paste): assert the correct String ( #17752 )
2022-03-24 19:40:00 +08:00
dundargoc
534f5a419d
refactor: convert function comments to doxygen format ( #17710 )
2022-03-24 12:17:21 +01:00
Lewis Russell
fcd57980f9
chore: add additional compiler flags ( #17815 )
...
Added:
- -Wdouble-promotion
- -Wmissing-noreturn
- -Wmissing-format-attribute
- -Wsuggest-attribute={pure,const,malloc,cold}
Resolves : #343
2022-03-24 12:14:04 +01:00
bfredl
0c45753119
Merge pull request #17825 from bfredl/ctrl2
...
feat(input)!: distinguish ctrl input pairs (always)
2022-03-24 12:05:36 +01:00
Dundar Göc
8b7f818ee7
refactor(memline): convert function comments to doxygen format
2022-03-24 11:19:15 +01:00
bfredl
ed88ca7503
feat(input): enable <tab>/<c-i>, <cr>/<c-m>, <esc>/<c-[> pairs unconditionally
2022-03-24 11:02:39 +01:00
zeertzjq
d7488bf386
feat(input)!: delay some conversions to vgetc()
2022-03-24 11:02:39 +01:00
zeertzjq
c29a14d1fa
perf(screen): reduce cursorline redrawing when jumping around
...
vim-patch:8.2.4614: redrawing too much when 'cursorline' is set
Problem: Redrawing too much when 'cursorline' is set and jumping around.
Solution: Rely on win_update() to redraw the current and previous cursor
line, do not mark lines as modified. (closes vim/vim#9996 )
c20e46a4e3
This doesn't match the patch exactly, because I missed some lines when
porting patch 8.1.2029, and these lines were removed in this patch.
This also makes win_update() always update for 'concealcursor' like how
it always updates for 'cursorline', as 'cursorline' and 'concealcursor'
redrawing logic has been unified in Nvim.
As redrawing for 'cursorline' now always only requires VALID redraw
type, it is no longer necessary to call redraw_for_cursorline() in
nvim_win_set_cursor().
2022-03-24 16:08:59 +08:00
zeertzjq
3e9b4e917d
vim-patch:8.2.4591: cursor line not updated when a callback moves the cursor
...
Problem: Cursor line not updated when a callback moves the cursor.
Solution: Check if the cursor moved. (closes vim/vim#9970 )
e7a74d5375
redraw_after_callback() is N/A. Nvim handles timers on the main loop.
2022-03-24 16:08:59 +08:00
zeertzjq
a72f338d76
fix(float): do not switch window before deleting last listed buffer ( #17840 )
...
Just allow close_windows() to close the current window instead.
This fixes wrong working directory or autocommands not being triggered.
2022-03-24 14:53:20 +08:00
zeertzjq
ff82b2785f
fix(float): don't always switch window when deleting last listed buffer ( #17836 )
2022-03-24 11:56:22 +08:00
zeertzjq
fc3bff6b7e
ci: remove src/nvim/**.lua from docgen pattern
...
After #17623 this pattern is no longer necessary.
2022-03-24 11:35:24 +08:00
zeertzjq
2e36117840
test: add test for deleting last listed buffer when there are floats ( #17833 )
2022-03-24 09:28:23 +08:00
dundargoc
d3af109d10
fix(PVS/V560): ignore false "conditional expression is always false" ( #17830 )
...
"'qi' points to the global variable 'ql_info' or the window local location list stack 'wp->w_llist'. The contents of these structures can be changed out-of-band by an autocmd."
https://github.com/vim/vim/pull/9993#issuecomment-1076544168
2022-03-24 06:25:20 +08:00
zeertzjq
06131370a4
refactor(memline.c): make swapfile_unchanged() return bool ( #17827 )
...
vim-patch:8.2.4613: return type of swapfile_unchanged() is wrong
Problem: Return type of swapfile_unchanged() is wrong.
Solution: Use "int". (closes vim/vim#10000 Yeah!)
3c5999e53d
2022-03-23 22:33:34 +08:00
zeertzjq
52fe8eae07
fix(screen): do not update syntax_last_parsed when drawing folded line ( #17826 )
2022-03-23 20:23:41 +08:00
zeertzjq
f5a3edb0c0
refactor: remove cpo-& behavior ( #17745 )
...
cpo-& has been removed, but its behavior was accidentally made the
default behavior. That should be removed instead.
2022-03-23 19:52:50 +08:00
zeertzjq
0621cd3112
Merge pull request #17806 from zeertzjq/win-close-float-fix
...
Fix some bugs with closing window or buffer when there are floating windows
2022-03-23 18:05:31 +08:00
zeertzjq
a9359dca37
fix(float): make laststatus=1 behave consistently with floating windows
2022-03-23 09:07:21 +08:00
zeertzjq
3fdb7b528d
fix(float): handle buffer deletion with floating windows
2022-03-23 09:07:21 +08:00
zeertzjq
3539456f49
fix(win_close): count the window the be closed instead of curwin
2022-03-23 09:07:21 +08:00
zeertzjq
89712dcbf8
fix(aucmd_win): always make aucmd_win the last window
2022-03-23 09:07:21 +08:00
zeertzjq
7735163652
fix(screen): do not do syntax highlighting at filler or folded lines ( #17818 )
2022-03-23 07:07:34 +08:00
zeertzjq
159111f9a5
refactor(ui_refresh): only save/restore p_lz if calling screen_resize() ( #17794 )
2022-03-23 06:34:45 +08:00
Lewis Russell
7863e6b709
vim-patch:8.2.1078: highlight and match functionality together in one file ( #17805 )
...
Problem: Highlight and match functionality together in one file.
Solution: Move match functionality to a separate file. (Yegappan Lakshmanan,
closes vim/vim#6352 )
06cf97e714
2022-03-23 06:31:50 +08:00
Lewis Russell
f63a52a0db
vim-patch:8.1.1608: the evalfunc.c file is too big ( #17807 )
...
Problem: The evalfunc.c file is too big.
Solution: Move sign functionality to sign.c.
b60d8514b8
2022-03-23 06:31:06 +08:00
James McCoy
04d2476d3a
Merge pull request #17813 from muniter/jl-ci-api-docs-permissions
...
fix(ci): provide necessary permissions for calling workflow
2022-03-22 06:52:09 -04:00
Javier López
b55e65980a
fix(ci): provide necessary permissions for calling workflow
...
Also error on the side of security adding an extra check on the
automatic PR step.
2022-03-21 22:40:24 -05:00
James McCoy
0c02e8a62b
Merge pull request #17768 from muniter/jl-genvimdoc-ci
2022-03-21 11:41:19 -04:00
James McCoy
50f3bb7e57
Merge pull request #17491 from neovim/marvim/api-doc-update/master
2022-03-21 11:40:56 -04:00
dundargoc
e9b53f3fb5
fix(PVS/V583): the '?:' operator always returns one and the same value ( #17790 )
2022-03-20 17:25:03 -06:00
zeertzjq
18900758c3
Merge pull request #17760 from lewis6991/vim-patch-8.1.1734
...
vim-patch:8.1.{1734,1742,1743}: highlight, match and screen.c refactoring
2022-03-21 07:21:04 +08:00
Lewis Russell
087a9603d0
vim-patch:8.1.1743: 'hlsearch' and match highlighting in the wrong place
...
Problem: 'hlsearch' and match highlighting in the wrong place.
Solution: Move highlighting from inside screen functions to highlight.c.
bbca7732e8
2022-03-20 22:01:56 +00:00
Lewis Russell
3c62a3f9dd
vim-patch:8.1.1742: still some match functions in evalfunc.c
...
Problem: Still some match functions in evalfunc.c.
Solution: Move them to highlight.c.
7dfb016d25
2022-03-20 22:01:56 +00:00
Lewis Russell
6566a4bdbd
vim-patch:8.1.1734: the evalfunc.c file is too big
...
Problem: The evalfunc.c file is too big.
Solution: Move some functions to other files.
29b7d7a9aa
2022-03-20 22:01:56 +00:00
marvim
809dd65396
docs: regenerate [skip ci]
2022-03-20 18:00:30 +00:00
bfredl
e7391191e2
Merge pull request #17776 from bfredl/tsconceal
...
feat(ui): allow conceal to be defined in decorations
2022-03-20 18:59:20 +01:00
Tim Pope
af427dedf6
fix(lsp): set tabSize from 'shiftwidth', not 'softtabstop' ( #17787 )
...
The use of 'softtabstop' to set tabSize was introduced in 5d5b068
,
replacing 'tabstop'. If we look past the name tabSize and at the actual
purpose of the field, it's the indentation width used when formatting.
This corresponds to the Vim option 'shiftwidth', not 'softtabstop'.
The latter has the comparatively mundane purpose of controlling what
happens when you hit the tab key (and even this is incomplete, as it
fails to account for 'smarttab').
2022-03-20 10:41:46 -07:00
bfredl
6eca9b69c4
feat(ui): allow conceal to be defined in decorations
...
Unlike syntax conceal, change highlight of concealed char
Can be used in tree-sitter using "conceal" metadata.
2022-03-20 18:02:41 +01:00
James McCoy
463738938d
Merge pull request #17785 from muniter/jl-fix-doxygen-destroyer
...
docs: properly escape to avoid doxygen weirdness
2022-03-20 10:35:27 -04:00
Sean Dewar
315858bf67
fix(termdebug): handle exiting during startup properly ( #16790 )
...
s:EndTermDebug should only be called when exiting if the debugger started
without error, otherwise the plugin breaks.
Vim handles this by using job_setoptions to set the on_exit callback to
s:EndTermDebug after startup succeeds. However, Nvim does not have such
functionality; instead; use s:starting to mimic this behaviour.
Also, introduce s:running to fix s:CheckGdbRunning; it did not work correctly
due to the "[Process exited X]" message keeping the job's channel alive (though
the stream is closed). This means nvim_get_chan_info cannot be used to check if
the debugger has exited, as it may still return a non-empty dict.
2022-03-20 10:10:01 +00:00
Christian Clason
75157d2572
vim-patch:47c532e2bc55 ( #17780 )
...
Update runtime files
47c532e2bc
2022-03-20 10:48:10 +01:00
zeertzjq
54f15a9e47
Merge pull request #17772 from zeertzjq/vim-8.2.2716
...
vim-patch:8.2.{2716,4546}: the equivalent class regexp is missing some characters
2022-03-20 12:31:11 +08:00
Gregory Anders
be35d3c5ad
feat(api): remove Lua autocommand callbacks when they return true ( #17784 )
...
This copies the semantics of nvim_buf_attach callbacks, and is a
convenient way to create oneshot autocommands gated by some condition.
2022-03-19 18:57:58 -06:00
zeertzjq
77eb6f9dc7
fix(api, lua): return NIL on failure to find converted function ( #17779 )
2022-03-20 08:08:50 +08:00
Javier López
b1207e5080
docs: properly escape to avoid doxygen weirdness
...
If this is not properly escaped doxygen 1.9.3 will not work correctly,
and the documentation generated in local machines will differ with what
is generated in CI.
2022-03-19 15:32:18 -05:00