Magnus Groß
980c68d036
vim-patch:8.2.3610: crash when ModeChanged triggered too early
...
Problem: Crash when ModeChanged triggered too early.
Solution: Trigger ModeChanged after setting VIsual.
a062006b9d
2021-11-18 14:23:33 +01:00
Magnus Groß
1fb101afe4
vim-patch:8.2.3609: internal error when ModeChanged is triggered recursively
...
Problem: Internal error when ModeChanged is triggered when v:event is
already in use.
Solution: Save and restore v:event if needed.
3075a45592
In the vim codebase there is no occurrence of get_vim_var_dict(VV_EVENT)
after the above patch, so in order to hold the same invariant in the
neovim codebase we needed to replace more occurrences than the related
vim patch.
2021-11-18 14:23:33 +01:00
Magnus Groß
fdfd1eda43
feat: trigger ModeChanged for terminal modes
2021-11-18 11:23:18 +01:00
Magnus Groß
11683193f5
vim-patch:8.2.3555: ModeChanged is not triggered on every mode change
...
Problem: ModeChanged is not triggered on every mode change.
Solution: Also trigger on minor mode changes. (Maguns Gross, closes vim/vim#8999 )
25def2c8b8
2021-11-18 11:23:18 +01:00
Magnus Groß
60c154687a
vim-patch:8.2.3463: pattern matching with ModeChanged not tested
...
Problem: Pattern matching with ModeChanged not tested.
Solution: Add a few more test lines. (issue vim/vim#8856 )
72d2fa69e5
2021-11-18 11:23:18 +01:00
Magnus Groß
fc3e5caefd
vim-patch:8.2.3462: ModeChanged only uses one character for new_mode and old_mode
...
Problem: The ModeChanged event only uses one character for the new_mode and
old_mode values.
Solution: Pass one as first argument to mode(). (issue vim/vim#8856 )
d85931e673
2021-11-18 11:23:18 +01:00
Magnus Groß
69bd1e4e36
vim-patch:8.2.3430: no generic way to trigger an autocommand on mode change
...
Problem: No generic way to trigger an autocommand on mode change.
Solution: Add the ModeChanged autocommand event. (Magnus Gross, closes vim/vim#8856 )
f1e8876fa2
N/A patches for version.c:
vim-patch:8.2.3434: function prototype for trigger_modechanged() is incomplete
Problem: Function prototype for trigger_modechanged() is incomplete.
Solution: Add "void".
28e591dd50
Fixes #4399 .
Fixes #7416 .
2021-11-18 11:23:18 +01:00
zeertzjq
36538417f0
vim-patch:01164a6546b4 ( #16335 )
...
missing changes to src/nvim/po/check.vim from 01164a6546 (diff-ed3e88d59856bb5b62b2a394fb8c7293cd5794531e0718c0aa2d3d768d7973d1)
2021-11-17 21:28:20 -05:00
zeertzjq
1f68a21d66
vim-patch:8.2.3593: directory is wrong after executing "lcd" with win_execute() ( #16314 )
...
Problem: Directory is wrong after executing "lcd" with win_execute().
Solution: Correct the directory when going back to the original window.
(closes vim/vim#9132 )
7f13b24ab6
2021-11-17 21:18:55 -05:00
zeertzjq
dba3590a0e
vim-patch:8.2.3591: no event is triggered when closing a window ( #16306 )
...
Problem: No event is triggered when closing a window.
Solution: Add the WinClosed event. (Naohiro Ono, closes vim/vim#9110 )
23beefed73
Nvim has already implemented this feature, so this only changes tests
and docs.
2021-11-17 21:11:09 -05:00
zeertzjq
5ff972cafe
vim-patch:8.2.3522: cannot use \x and \u when setting 'listchars' ( #16049 )
...
Problem: Cannot use \x and \u when setting 'listchars'.
Solution: Support hex and unicode in hex form. (closes vim/vim#9006 )
93ff6720fe
2021-11-17 20:55:59 -05:00
Michael Lingelbach
eb3d59126e
fix(lsp): change signature of buf_highlight_references ( #16345 )
...
the prior signature did not assume an active language client
this function can now be used directly by passing an offset encoding
defaults to utf-16 (standard for LSP)
2021-11-17 21:14:45 +01:00
Christian Clason
c0efe49e78
vim-patch:519cc559b08b ( #16340 )
...
Update runtime files
519cc559b0
2021-11-17 10:02:59 +01:00
zeertzjq
145fc69df9
vim-patch:8.2.3588: break statement is never reached
...
Problem: Break statement is never reached.
Solution: Rely on return value of set_chars_option() not changing.
(closes vim/vim#9103 )
606efc7df4
2021-11-17 07:11:46 +08:00
zeertzjq
8dbe47a4bc
vim-patch:8.2.3572: memory leak when closing window and using "multispace"
...
Problem: Memory leak when closing window and using "multispace" in
'listchars'.
Solution: Free the memory. (closes vim/vim#9071 )
7a33ebfc5b
2021-11-17 07:11:46 +08:00
zeertzjq
5ed2a5cf9c
vim-patch:8.2.2520: missing tests for 'listchars'
...
Problem: Missing tests for 'listchars'.
Solution: Add a few more checks. (Yegappan Lakshmanan, closes vim/vim#7854 )
04ea7e9049
2021-11-17 07:11:46 +08:00
zeertzjq
7528bcec42
fix(options): using :set fillchars should clear local value
2021-11-17 07:11:46 +08:00
zeertzjq
8c24e1462c
vim-patch:8.2.2518: 'listchars' should be window-local
...
Problem: 'listchars' should be window-local.
Solution: Make 'listchars' global-local. (Yegappan Lakshmanan, Marco Hinz,
closes vim/vim#5206 , closes vim/vim#7850 )
eed9d46293
Nvim already has this feature, but it implements :set listchars the same
as :setglobal listchars, which is incorrect. Vim's implementation of
:set listchars is correct: using :set listchars clears local value.
2021-11-17 07:11:40 +08:00
dundargoc
eba317d7a9
refactor: reduce number of explicit char casts ( #16077 )
...
* refactor: reduce number of explicit char casts
2021-11-16 20:27:59 +01:00
Christian Clason
99211b008c
vim-patch:8.2.3604: not all sudoers files are recognized ( #16338 )
...
Problem: Not all sudoers files are recognized.
Solution: Add a file pattern. (Doug Kearns, closes vim/vim#1192 )
c143fa0778
2021-11-16 18:34:39 +01:00
Christian Clason
b5eab2a98a
vim-patch:8.2.3603: fish filetype not recognized ( #16337 )
...
Problem: Fish filetype not recognized.
Solution: Add a file pattern and match script line. (Doug Kearns)
b1b163efd7
2021-11-16 18:26:03 +01:00
Gregory Anders
8fb09bc512
Merge pull request #16328 from gpanders/diagnostic-prefix-hi
2021-11-16 08:48:26 -07:00
Gregory Anders
98af683e0f
refactor(diagnostic): make bufnr arguments consistent ( #16323 )
...
Make the bufnr argument have similar semantics across API functions;
namely, a nil value means "all buffers" while 0 means "current buffer".
This increases the flexibility of the API by allowing functions such as
enable() and disable() to apply globally or per-namespace, rather than
only on a specific buffer.
2021-11-16 08:47:49 -07:00
Christian Clason
890f8cd750
Merge pull request #16330 from clason/vim-8.2.3598
...
vim-patch:8.2.3598,3599,3600: some filetypes are not recognized
2021-11-16 13:38:07 +01:00
Christian Clason
75959d04c4
vim-patch:8.2.3600: filetype test fails
...
Problem: Filetype test fails.
Solution: Add missint change.
314b773abb
2021-11-16 13:04:14 +01:00
Christian Clason
b20429c8a5
vim-patch:8.2.3599: not all gdbinit files are recognized
...
Problem: Not all gdbinit files are recognized.
Solution: Add "gdbinit". (Doug Kearns)
782b4bbc16
2021-11-16 12:40:50 +01:00
Christian Clason
e5ef736dfe
vim-patch:8.2.3598: RouterOS filetype is not recognized
...
Problem: RouterOS filetype is not recognized.
Solution: Add file and script patterns. (closes vim/vim#9097 )
0818ab82e7
2021-11-15 23:03:10 +01:00
Michael Lingelbach
87a053f126
fix(lsp): fix edge cases in incremental sync ( #16308 )
2021-11-15 08:51:30 -08:00
Gregory Anders
63413bd047
refactor(diagnostic)!: rename 'show_header' to 'header'
...
Rename the `show_header` option in `open_float` to simply `header` and
allow users to specify both the header string as well as the highlight
group.
2021-11-15 09:12:27 -07:00
Gregory Anders
cc48837622
feat(diagnostic): allow 'prefix' option to return highlight
...
Extend the 'prefix' option for `open_float` to also provide an optional
highlight group for the prefix string.
2021-11-15 09:05:40 -07:00
Jan Edmund Lazo
8f984dc1f2
Merge pull request #16047 from mcepl/vim-8.2.3520
...
vim-patch:8.2.3520: cannot define a function for thesaurus completion
2021-11-14 21:23:42 -05:00
Gregory Anders
3c74ba4acb
feat(diagnostic): add 'prefix' option to open_float ( #16321 )
...
The 'prefix' option accepts a function or a string that is used to add a
prefix string to each diagnostic displayed in the floating window.
2021-11-14 18:40:11 -07:00
Björn Linse
2f37ffb719
Merge pull request #16316 from bfredl/macroman
...
refactor(macros): delete multibyte macros which just are aliases
2021-11-14 17:43:21 +01:00
Björn Linse
1450a6f753
refactor(macroman): get rid of MB_COPY_CHAR macro
...
clean up docs for MB_PTR_ADV and MB_PTR_BACK
2021-11-14 17:08:50 +01:00
Björn Linse
54ff21a153
refactor(macros): delete multibyte macros which just are aliases
2021-11-14 16:33:12 +01:00
James McCoy
ede00b29d1
Merge pull request #16317 from jamessan/remove-32bit-windows-ci
...
ci!: remove win32 builds/releases
2021-11-14 09:13:48 -05:00
James McCoy
7bd6f12b3e
ci!: remove win32 builds/releases
2021-11-14 08:51:39 -05:00
Björn Linse
27f8b04f17
Merge pull request #16315 from bfredl/multibytes
...
refactor(multibyte): eliminate mb_* aliases for utf_* functions
2021-11-14 13:44:18 +01:00
Mathias Fußenegger
ee3a58d42e
fix(lsp): ensure buffers are re-attached on rename ( #16266 )
...
If a LSP server sent a workspace edit containing a rename the buffers
file name changed without the server receiving a close notification for
the old buffer and without the client properly re-attaching on the new
file.
This affected `Move` code-actions in nvim-jdtls, but also
`vim.lsp.buf.rename` on a class level.
2021-11-14 12:55:16 +01:00
Björn Linse
71a4d275dc
refactor(multibyte): eliminate mb_char2len alias for utf_char2len
2021-11-14 12:49:12 +01:00
Björn Linse
0039ba04b0
refactor(multibyte): eliminate mb_ptr2len alias for utfc_ptr2len
2021-11-14 12:49:12 +01:00
Björn Linse
9f27e6cbe7
refactor(multibyte): eliminate mb_char2cells alias for utf_char2cells
2021-11-14 12:49:09 +01:00
Christian Clason
2ef9d2a663
chore: disable creating a blank issue
2021-11-11 19:41:37 +01:00
Daniel Steinberg
e8631cb8a6
fix(float): skip non-focusable windows for :windo ( #15378 )
2021-11-11 11:05:18 -07:00
Michael Lingelbach
9d6a475ced
fix(docs): add sync.lua to gen_vimdoc ( #16285 )
2021-11-11 07:23:52 -07:00
Björn Linse
5d653a1344
Merge pull request #16276 from zeertzjq/channel-closed-term-error
...
Fixes and tests for sending to terminal channel whose terminal has been deleted
2021-11-11 10:57:16 +01:00
Michael Lingelbach
0ecc58c277
fix(lsp): gracefully handle nil workspaceFolders ( #16284 )
...
* handle when workspaceFolder is nil in buf.list_workspace_folders and buf.add_workspace_folder
2021-11-11 01:15:59 -08:00
zeertzjq
8b5c32c8cd
test: add tests for freeing channel opened by termopen()
...
This indirectly covers #16264
2021-11-11 09:34:23 +08:00
zeertzjq
a502a7a731
fix(channel): fix channels opened by nvim_open_term() never being freed
2021-11-11 09:34:23 +08:00
zeertzjq
3b89fee246
fix(channel): throw error if sending to internal channel w/o terminal
...
Prevent SIGABRT when sending to a channel created by nvim_open_term()
after the associated terminal has been deleted.
2021-11-11 09:34:23 +08:00