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
Justin M. Keyes
a141f6e922
fix(vim.mpack): rename pack/unpack => encode/decode #16175
...
Problem:
1. "unpack" has an unrelated meaning in Lua:
https://www.lua.org/manual/5.1/manual.html#pdf-unpack
2. We already have msgpackparse()/msgpackdump() and
json_encode()/json_decode(), so introducing another name for the same
thing is entropy.
Solution:
- Rename vim.mpack.pack/unpack => vim.mpack.encode/decode
Caveat:
This is incongruent with the `Unpacker` and `Packer` functions.
- It's probably too invasive to rename those.
- They also aren't part of our documented interface.
- This commit is "reversible" in the sense that we can always revert
it and add `vim.mpack.encode/decode` as _aliases_ to
`vim.mpack.pack/unpack`, at any time in the future, if we want
stricter fidelity with upstream libmpack. Meanwhile,
`vim.mpack.encode/decode` is currently the total _documented_
interface of `vim.mpack`, so this change serves the purpose of
consistent naming in the Nvim stdlib.
2021-10-30 06:59:59 -07:00
dundargoc
4472c56d54
refactor: uncrustify #16090
2021-10-29 17:23:20 -07:00
erw7
16d06fa3eb
fix(eval): fix has('wsl') #16153
...
Problem:
has('wsl') is decided at build-time.
Solution:
Check os_uname().
Fixes #12642 , #16143
2021-10-29 16:55:32 -07:00
Björn Linse
a60beeb34f
refactor(api): break out Vim script functions to its own file
2021-10-29 16:59:53 +02:00
Björn Linse
c3a3e65428
refactor(api): break out vim_to_object/object_to_vim to own file
2021-10-29 15:52:28 +02:00
Fabian
1dbbaf89bf
fix(eval): checking for a non-empty string is too strict ( #15987 )
...
Cherry-pick check_for_nonempty_string() from patch vim-8.2.2133 and
apply it on the bases of https://github.com/neovim/neovim/pull/13489
2a9d5d386b
2021-10-28 22:13:40 -04:00
Jaehwang Jerry Jung
bb79e05f81
vim-patch:8.2.3556: filler lines are incorrect for other window in diff mode ( #16164 )
...
Problem: Filler lines are incorrect for other window in diff mode after
making a change.
Solution: Copy filler lines from the current window. (closes vim/vim#8809 )
841c225b9e
2021-10-28 22:04:57 -04:00
zeertzjq
7ff1bc18a9
fix(float): redraw if w_border_adj changed
2021-10-28 06:32:36 +08:00
zeertzjq
de670f3809
fix(float): fix potential heap corruption in win_redr_border
2021-10-28 06:32:36 +08:00
Björn Linse
a5d6f36fc7
Merge pull request #16125 from dundargoc/refactor/lua/split-executor
...
refactor: split lua/executor.c into two files
2021-10-26 21:43:13 +02:00
Dundar Göc
13d331ef0d
refactor: split executor.c into two files
2021-10-26 21:04:52 +02:00
Björn Linse
c8882ca7e7
refactor(api): move extmark API to its own file
2021-10-25 22:33:40 +02:00
Björn Linse
09e96fe609
Merge pull request #16124 from mjlbach/feat/bjorn-bait
...
feat: add vim.str_utf_pos
2021-10-24 16:20:16 +02:00
Michael Lingelbach
d752cbc4d2
feat: add vim.str_utf_pos function
...
vim.str_utf_pos returns the codepoints for all utf-8 chars (only, currently)
in a string
2021-10-24 03:35:38 -07:00
Matěj Cepl
b092171e7c
vim-patch:8.2.3525: option variable name does not match option name
...
Problem: Option variable name does not match option name. (Christ van
Willigen)
Solution: Rename the variable.
d4c4bfa007
2021-10-24 08:57:30 +02:00
Yorick Peterse
6acebb8b56
vim-patch:8.2.3547: opening the quickfix window triggers BufWinEnter twice ( #16108 )
...
Problem: Opening the quickfix window triggers BufWinEnter twice. (Yorick
Peterse)
Solution: Only trigger BufWinEnter with "quickfix". (closes vim/vim#9022 )
1d30fde3c9
2021-10-23 21:55:04 -04:00
Matěj Cepl
36ff5976b9
vim-patch:8.2.3521: options completion test fails
...
Problem: Options completion test fails.
Solution: Add 'thesaurusfunc' to the results.
abdcfd1c83
2021-10-23 22:30:53 +02:00
Matěj Cepl
cbec765915
vim-patch:8.2.3520: cannot define a function for thesaurus completion
...
Problem: Cannot define a function for thesaurus completion.
Solution: Add 'thesaurusfunc'. (Yegappan Lakshmanan, closes vim/vim#8987 ,
closes 8950)
160e994d76
2021-10-23 22:30:50 +02:00
dundargoc
96ce6327a3
vim-patch:8.2.3542: too many comments are old style ( #16096 )
...
Problem: Too many comments are old style.
Solution: Change comments to // style. (closes vim/vim#9021 )
c5935a859e
2021-10-23 13:58:56 -04:00
dundargoc
4a0acd6fac
vim-patch:8.2.0026: still some /* */ comments ( #16088 )
...
Problem: Still some /* */ comments.
Solution: Convert to // comments.
85a2002adb
2021-10-23 13:56:43 -04:00
Jan Edmund Lazo
bb9e6a1583
Merge pull request #16111 from dundargoc/vim-patch/comments
...
vim-patch:8.1.2368,8.1.2378,8.1.2379,8.1.2380,8.1.2387,8.1.2388,8.1.2392,8.1.2394,8.1.2395,8.1.2396
2021-10-23 13:05:19 -04:00
Björn Linse
fa4b24072e
Merge pull request #16029 from bfredl/multiline
...
feat(decorations): support more than one virt_lines block
2021-10-23 16:54:49 +02:00
Björn Linse
8d7816cf27
feat(decorations): support more than one virt_lines block
2021-10-23 14:17:09 +02:00
Björn Linse
8ade2f5b04
refactor(decorations): mark decorations directly on the marktree
...
This allows to more quickly skip though regions which has non-decorative
marks when redrawing. This might seem like a gratuitous
micro-optimization in isolation.
But!
Soon decorations are gonna crop into other hot inner-loop paths,
including the plines.c code for calculating the horizontal and
vertical space of text. Then we want to quickly skip over regions with
"only" overlaying decorations (which do not affect text size)
2021-10-23 11:11:00 +02:00
Christian Clason
eaa03b7181
vim-patch:8.2.3550: completion() does not work properly ( #16112 )
...
* vim-patch:8.2.3550: completion() does not work properly
Problem: completion() does not work properly.
Solution: Set xp_line and add WILD_HOME_REPLACE. (Shougo Matsushita,
closes vim/vim#9016 )
ae38a9db77
Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com >
2021-10-21 17:46:24 +02:00
Dundar Göc
e59c0009a7
vim-patch:8.1.2396: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
e38eab22c1
2021-10-21 12:07:15 +02:00
Dundar Göc
8000f6d566
vim-patch:8.1.2395: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
0d6f5d9740
2021-10-21 12:07:14 +02:00
Dundar Göc
daf670dde6
vim-patch:8.1.2394: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
63d9e730f7
2021-10-21 12:07:14 +02:00