Christian Clason
e4976cbd26
Merge pull request #16452 from clason/vim-8.2.3685
...
vim-patch:8.2.{3451,3458,3452,3685,3686}: some filetypes are not recognized correctly
2021-11-28 11:57:07 +01:00
Christian Clason
1840c82b42
Merge pull request #16451 from clason/vim-8.2.3684
...
vim-patch:8.2.{3684,3687}: blockwise insert does not handle autoindent properly
2021-11-28 11:47:07 +01:00
Christian Clason
2f8ed7b822
vim-patch:8.2.3687: blockwise insert does not handle autoindent properly
...
Problem: Blockwise insert does not handle autoindent properly when tab is
inserted.
Solution: Adjust text column for indent before computing column.
(closes vim/vim#9229 )
59f4f9505a
2021-11-28 00:47:14 +01:00
Christian Clason
ea5699399e
vim-patch:8.2.3686: filetype detection often mixes up Forth and F#
...
Problem: Filetype detection often mixes up Forth and F#.
Solution: Add a function to inspect the file contents. (Doug Kearns)
3d14c0f2b9
2021-11-27 19:21:57 +01:00
dundargoc
caa6992a10
chore: fix typos ( #16361 )
...
Co-authored-by: Brede Yabo Sherling Kristensen <bredeyabo@hotmail.com >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
Co-authored-by: István Donkó <istvan.donko@gmail.com >
Co-authored-by: Julian Berman <Julian@GrayVines.com >
Co-authored-by: bryant <bryant@users.noreply.github.com >
Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com >
Co-authored-by: nlueb <9465658+nlueb@users.noreply.github.com >
Co-authored-by: Leonhard Saam <leonhard.saam@yahoo.com >
Co-authored-by: Jesse Wertheim <jaawerth@gmail.com >
Co-authored-by: dm1try <me@dmitry.it >
Co-authored-by: Jakub Łuczyński <doubleloop@o2.pl >
Co-authored-by: Louis Lebrault <louis.lebrault@gmail.com >
Co-authored-by: Brede Yabo Sherling Kristensen <bredeyabo@hotmail.com >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
Co-authored-by: István Donkó <istvan.donko@gmail.com >
Co-authored-by: Julian Berman <Julian@GrayVines.com >
Co-authored-by: bryant <bryant@users.noreply.github.com >
Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com >
Co-authored-by: nlueb <9465658+nlueb@users.noreply.github.com >
Co-authored-by: Leonhard Saam <leonhard.saam@yahoo.com >
Co-authored-by: Jesse Wertheim <jaawerth@gmail.com >
Co-authored-by: dm1try <me@dmitry.it >
Co-authored-by: Jakub Łuczyński <doubleloop@o2.pl >
Co-authored-by: Louis Lebrault <louis.lebrault@gmail.com >
2021-11-27 11:10:48 -05:00
Christian Clason
b339cb5aca
vim-patch:8.2.3451: not all apache files are recognized
...
Problem: Not all apache files are recognized.
Solution: Adjust the filetype pattern. (Zdenek Dohnal, closes vim/vim#8882 )
770ddbe159
2021-11-27 16:26:33 +01:00
Christian Clason
47ad1a3584
vim-patch:8.2.3458: not all dictdconf files are recognized
...
Problem: Not all dictdconf files are recognized.
Solution: Adjust the pattern. (Doug Kearns)
be01090efa
2021-11-27 16:26:20 +01:00
Christian Clason
b156ffedb6
vim-patch:8.2.3685: Visual studio project files are not recognized
...
Problem: Visual studio project files are not recognized.
Solution: Use the xml file type. (Doug Kearns)
c07f11e42f
2021-11-27 16:23:19 +01:00
Michael Lingelbach
512ec4632f
fix: allow str_utfindex second argument to be an explicit nil ( #16448 )
...
* str_utfindex checks number of arguments only, but ignores the case in
which the second argument is an explicit nil. Previously this required
dropping the second argument entirely.
* Modify the C binding to explicitly check if the second argument is nil
2021-11-27 10:07:58 -05:00
Christian Clason
a8dd1ea011
vim-patch:8.2.3684: blockwise insert does not handle autoindent properly
...
Problem: Blockwise insert does not handle autoindent properly.
Solution: Adjust text column for indent. (closes vim/vim#9229 )
e9b0b40b79
2021-11-27 14:55:40 +01:00
Christian Clason
afbf89dc01
vim-patch:8.2.3679: objc file detected as Octave ( #16446 )
...
Problem: objc file detected as Octave. (Antony Lee)
Solution: Detect objc by preprocessor lines. (Doug Kearns, closes vim/vim#9223 ,
closes vim/vim#9220 )
7329cfab36
2021-11-26 17:34:45 +01:00
Christian Clason
a31e7523f4
vim-patch:8.2.3677: after a put the '] mark is on the last byte ( #16442 )
...
Problem: After a put the '] mark is on the last byte of a multi-byte
character.
Solution: Move it to the first byte. (closes vim/vim#9047 )
4d07253a48
2021-11-26 12:16:04 +01:00
Mathias Fußenegger
72d62aa6aa
chore(docs): clarify vim.notify log_level parameter ( #16436 )
2021-11-25 20:06:42 +01:00
Gregory Anders
150a5922aa
feat(diagnostic)!: make DiagnosticChanged a first class autocmd ( #16098 )
...
This allows users to hook into diagnostic events with finer granularity
(e.g. per-buffer or file).
BREAKING CHANGE: DiagnosticsChanged and LspDiagnosticsChanged user
autocommands are removed.
2021-11-25 11:55:11 -07:00
Javier Lopez
a2e5c2f7c8
fix(fileio): replace characters over INT_MAX with U+FFFD ( #16354 )
...
fixes #11877
credit: @zubairabid https://github.com/neovim/neovim/pull/12010
2021-11-23 21:07:47 -07:00
Jan Edmund Lazo
64abd7be79
Merge pull request #16341 from zeertzjq/vim-8.2.2518
...
vim-patch:8.2.{2518,2520,3572,3588}: 'listchars' (and 'fillchars'?) fixes
2021-11-21 22:21:32 -05:00
zeertzjq
e05db65d2a
vim-patch:8.2.3627: difficult to know where the text starts in a window ( #16377 )
...
vim-patch:8.2.3627: difficult to know where the text starts in a window
Problem: difficult to know where the text starts in a window. (Sergey
Vlasov)
Solution: Add the "textoff" entry in the result of getwininfo().
(closes vim/vim#9163 )
cdf5fdb294
Fix indent in Test_getbufwintabinfo().
2021-11-21 21:10:03 -05:00
Jan Edmund Lazo
f45b2f313e
Merge pull request #16386 from VVKot/vim-8.2.2922
...
vim-patch:8.2.2922,8.2.3639
2021-11-21 20:41:56 -05:00
Jan Edmund Lazo
0d967f0298
Merge pull request #16362 from zeertzjq/vim-8.2.3617
...
vim-patch:8.2.{3468,3617,3618,3622}: some other CWD related patches
2021-11-21 17:47:09 -05:00
Michal Liszcz
85707a3395
vim-patch:8.2.3255: ci" finds following string but ci< and others don't ( #16324 )
...
Problem: ci" finds following string but ci< and others don't.
Solution: When not inside an object find the start. (Connor Lane Smit,
closes vim/vim#8670 )
b9115da4be
2021-11-21 14:00:50 -05:00
Volodymyr Kot
9d0726f6d8
vim-patch:8.1.1606: on a narrow screen ":hi" output is confusing ( #16388 )
...
Problem: On a narrow screen ":hi" output is confusing.
Solution: Insert a space between highlight group name and "xxx". (Masato
Nishihaga, closes vim/vim#4599 )
548be7f126
2021-11-21 13:10:24 -05:00
ii14
9d868317f9
vim-patch:8.2.3638: getcompletion() always passes zero as position ( #16387 )
...
Problem: getcompletion() always passes zero as position to custom
completion function.
Solution: Pass the pattern length. (closes vim/vim#9173 )
4785fe02bb
Co-authored-by: ii14 <ii14@users.noreply.github.com >
2021-11-21 13:00:51 -05:00
VVKot
ad71ecb49b
vim-patch:8.2.3639: line commented out accidentally
...
Problem: Line commented out accidentally.
Solution: Uncomment. (Volodymyr Kot, closes vim/vim#9172 )
7f0c4b418e
2021-11-21 13:53:50 +00:00
VVKot
ddc401a91c
vim-patch:8.2.2922: computing array length is done in various ways
...
Problem: Computing array length is done in various ways.
Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes vim/vim#8305 )
eeec254878
2021-11-21 08:20:38 +00:00
Jan Edmund Lazo
120a881630
Merge pull request #14540 from Shougo/fix_vim8.1.1378
...
[RFC] Improve tests
2021-11-20 22:46:34 -05:00
Volodymyr Kot
2bd8f2fb5e
vim-patch:8.1.0753: printf format not checked for semsg() ( #16378 )
...
Problem: printf format not checked for semsg().
Solution: Add GNUC attribute and fix reported problems. (Dominique Pelle,
closes vim/vim#3805 )
b5443cc46d
(Most of the changes do not apply because Neovim already uses PRId64 and other spelling mistakes were already fixed.)
2021-11-20 13:26:16 +01:00
dundargoc
725cbe7d41
refactor: saner options for uncrustify ( #16204 )
...
* sp_enum_after_assign = force
* sp_brace_typedef = force
* nl_do_brace = remove
* sp_do_brace_open = force
* sp_brace_close_while = force
* sp_before_semi = remove
* sp_before_semi_for = remove
* sp_before_semi_for_empty = remove
* sp_between_semi_for_empty = remove
* sp_after_semi_for_empty = remove
* sp_before_square = remove
* sp_before_squares = remove
* sp_inside_square = remove
* sp_inside_fparens = remove
* sp_inside_fparen = remove
* sp_inside_tparen = remove
* sp_after_tparen_close = remove
* sp_return_paren = force
* pos_bool = lead
* sp_pp_concat = remove
* sp_pp_stringify = remove
* fixup: disable formatting for the INIT section
2021-11-19 14:21:53 -05:00
James McCoy
9ec4417afc
Merge pull request #16066 from neovim/marvim/ci-version-update
...
version.c: update [skip ci]
2021-11-19 11:54:24 -05:00
Christian Clason
a7ad509902
fix(eval): fixup for empty modifier in fnamemodify ( #16368 )
...
* fix(eval): fixup for empty modifier in fnamemodify
1dbbaf89bf
erroneously removed a check for empty modifier and a PVS fix.
Restore that check and fix.
Fixes #16367
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2021-11-19 16:13:49 +01:00
zeertzjq
349b9ce9df
vim-patch:8.2.3622: "verbose pwd" shows confusing info
...
Problem: "verbose pwd" shows confusing info when :lcd does not change
directory.
Solution: Clear last_chdir_reason also when the directory does not change.
(closes vim/vim#9160 )
64be6aa3a5
This only ports the tests, as this is already Nvim's behavior.
2021-11-19 20:07:04 +08:00
zeertzjq
3d504f27a0
vim-patch:8.2.3618: getcwd() is unclear about how 'autochdir' is used
...
Problem: getcwd() is unclear about how 'autochdir' is used.
Solution: Update the help for getcwd(). Without any arguments always return
the actual current directory. (closes vim/vim#9142 )
851c7a699a
2021-11-19 20:07:04 +08:00
zeertzjq
54e9cce612
revert: partially revert #9894
...
Vim has a solution to #9892 with fewer side-effects in patch 8.2.3618
2021-11-19 20:07:04 +08:00
zeertzjq
4785cad8ee
vim-patch:8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
...
Problem: ":verbose pwd" does not mention 'autochdir' was applied.
Solution: Remember the last chdir was done by 'autochdir'. (issue vim/vim#9142 )
0526815c15
2021-11-19 20:07:04 +08:00
zeertzjq
0f58ba10e2
vim-patch:8.2.3468: problem with :cd when editing file in non-existent directory
...
Problem: Problem with :cd when editing file in non-existent directory. (Yee
Cheng Chin)
Solution: Prepend the current directory to get the full path. (closes vim/vim#8903 )
c6376c7984
2021-11-19 20:07:04 +08:00
Shougo Matsushita
e9819ca709
fix: error
2021-11-19 13:45:41 +09:00
Shougo Matsushita
c11cf6b415
test: save clipboard
2021-11-19 13:45:41 +09:00
Shougo Matsushita
18d7ec36f3
fix: remove unnecessary changes
2021-11-19 13:45:41 +09:00
Shougo Matsushita
a11cec08e5
fix: for reviews
2021-11-19 13:45:41 +09:00
Shougo Matsushita
dd63d93931
fix: disable clipboard when test registers
2021-11-19 13:45:40 +09:00
Shougo Matsushita
77c2edcacb
fix: remove previous executed directories to execute tests locally
2021-11-19 13:45:40 +09:00
Shougo Matsushita
4cb8a399c7
fix: add cd for local execution
2021-11-19 13:45:40 +09:00
Shougo Matsushita
133d79a358
vim-patch:8.2.3616: arglist test does not clear the argument list consistently
...
Problem: Arglist test does not clear the argument list consistently.
Solution: Call Reset_arglist(). (Shougo Matsushita, closes vim/vim#9154 )
3cad470385
2021-11-19 13:45:29 +09:00
marvim
b43b6efa34
version.c: update [skip ci]
2021-11-19 03:07:56 +00: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