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
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
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
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
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
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
Daniel Steinberg
e8631cb8a6
fix(float): skip non-focusable windows for :windo ( #15378 )
2021-11-11 11:05:18 -07: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
zeertzjq
14def4d227
fix(terminal): free terminal if close_buffer() closes a closed terminal ( #16264 )
...
Use the (currently unused) 'destroy' field of the terminal struct as a
flag to indicate that the terminal's destruction is imminent (and
therefore it's close callback should not be called again).
Co-authored-by: Gregory Anders <greg@gpanders.com >
2021-11-10 15:28:55 -07:00
Christian Clason
8cbe100fcc
vim-patch:partial 113cb513f76d ( #16260 )
...
Update runtime files
113cb513f7
skip doc/eval.txt
skip doc/insert.txt
skip doc/user_06.txt (needs 8.2.3562)
partial skip doc/syntax.txt (needs 8.2.3562)
2021-11-08 00:10:44 +01:00
Björn Linse
77c54fc995
Merge pull request #16155 from zeertzjq/fix-redr-border-corruption
...
fix(float): fix potential heap corruption in win_redr_border
2021-11-06 22:32:28 +01:00
Gregory Anders
03b805aee6
feat(lua): enable stack traces in error output ( #16228 )
2021-11-06 08:26:10 -06:00
Matěj Cepl
2dc0af3a4f
vim-patch:8.2.3528: 'thesaurus' and 'thesaurusfunc' do not have the same scope
...
Problem: 'thesaurus' and 'thesaurusfunc' do not have the same scope.
Solution: Make 'thesaurusfunc' global-local.
f4d8b76d30
2021-11-06 14:24:46 +01:00
Björn Linse
9e88c9c12f
fix(screen): make display_tick monotonic up to 2^64. fixes #16152
...
18446744073709551616 screen redraws should be enough for everyone.
2021-11-05 10:43:19 +01:00
Jan Alexander Steffens
3ba800f153
fix(tui): extend smglr ignores to smglp and smgrp ( #16239 )
...
The latter were added for xterm by ncurses 6.3 and are similarly
affected.
Fixes https://github.com/neovim/neovim/issues/16238
2021-11-04 20:36:16 -06:00
zeertzjq
5ce35abae6
fix(input): never reinterpret unmapped ALT- chrods in Terminal mode ( #16222 )
2021-11-04 07:43:05 -06:00
glacambre
52efcefcc8
fix: remove double slash in sysinit path
...
Closes https://github.com/neovim/neovim/issues/13187 .
2021-11-03 07:47:40 +01:00
Björn Linse
995dbd2ca6
fix(extmark): fix missing virt_lines when using id param of set_extmark
2021-11-01 22:57:33 +01:00
James McCoy
b8eabb37b1
Merge pull request #16131 from jamessan/vim-8.1.0306
2021-11-01 11:27:42 -04:00
Javier Lopez
961cd83b3b
refactor(api/marks)!: add opts param for feature extensibility ( #16146 )
...
In the future we might want to extend the concept of named marks and
adding opts reduces the need of changing the function signature in the
furute.
2021-11-01 07:46:26 -06:00
James McCoy
9e479ea05e
vim-patch:8.2.3561: cscope has a complicated way of giving an error message
...
Problem: Cscope has a complicated way of giving an error message.
Solution: Use semsg(). (James McCoy, closes vim/vim#9038 )
3c5904d2a5
2021-11-01 06:41:29 -04:00
James McCoy
502ff11663
vim-patch:8.1.0783: compiler warning for signed/unsigned
...
Problem: Compiler warning for signed/unsigned.
Solution: Add type cast. Change type of buffer. (Ozaki Kiichi, closes vim/vim#3827 )
63c0ccd2b6
2021-11-01 06:41:29 -04:00
James McCoy
e6ff154be6
vim-patch:8.1.0779: argument for message functions is inconsistent
...
Problem: Argument for message functions is inconsistent.
Solution: Make first argument to msg() "char *".
32526b3c18
2021-11-01 06:41:29 -04:00
James McCoy
efa924f66b
vim-patch:8.1.0743: giving error messages is not flexible
...
Problem: Giving error messages is not flexible.
Solution: Add semsg(). Change argument from "char_u *" to "char *", also
for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes
vim/vim#3302 ) Also make emsg() accept a "char *" argument. Get rid of
an enormous number of type casts.
f9e3e09fdc
2021-11-01 06:41:28 -04:00
James McCoy
684640f551
vim-patch:8.1.0306: plural messages are not translated properly
...
Problem: Plural messages are not translated properly.
Solution: Add more usage of NGETTEXT(). (Sergey Alyoshin)
da6e8919e7
2021-11-01 06:40:00 -04:00
dundargoc
a68faed02d
refactor: saner options for uncrustify #16196
...
* refactor: general good option changes
sp_deref = remove
sp_not = remove
sp_inv = remove
sp_inside_paren_cast = remove
mod_remove_duplicate_include = true
sp_after_semi = add
sp_after_semi_for = force
sp_sizeof_paren = remove
nl_return_expr = remove
nl_else_brace = remove
nl_else_if = remove
* refactor: mod_remove_extra_semicolon = true
* refactor: nl_max = 3
* refactor: sp_bool = force
* refactor: sp_compare = force
* refactor: sp_inside_paren = remove
* refactor: sp_paren_paren = remove
* refactor: sp_inside_sparen = remove
* refactor: sp_before_sparen = force
* refactor: sp_sign = remove
* refactor: sp_addr = remove
* refactor: sp_member = remove
* refactor: nl_struct_brace = remove
* refactor: nl_before_if_closing_paren = remove
* refactor: nl_fdef_brace = force
* refactor: sp_paren_comma = force
* refactor: mod_full_brace_do = add
2021-10-31 17:03:08 -07:00
Björn Linse
e6b8d4f67b
fix(runtime): fix missing packpath entries
2021-10-31 15:37:09 +01:00
Michael Lingelbach
2230b578d1
feat: add vim.str_utf_{start,end} ( #16129 )
...
vim.str_utf_{start,end} return the offset from the current position to
the start and end of the current utf-character (nearest codepoint)
respectively.
2021-10-30 10:30:40 -07:00