Björn Linse
18096631b1
Merge pull request #11399 from bfredl/markundo
...
extmark: do not crash in read-only buffer
2019-11-16 12:01:53 +01:00
Björn Linse
ebdf90e7d7
extmark: don't crash in RO buffer.
2019-11-16 11:58:32 +01:00
Björn Linse
6222cca36a
undo: delete undo_off global without effect
2019-11-16 11:03:43 +01:00
Jan Edmund Lazo
d79164c9f9
vim-patch:8.1.0992: :normal resets reg_executing() result #11398
...
Problem: A :normal command while executing a register resets the
reg_executing() result.
Solution: Save and restore reg_executing. (closes vim/vim#4066 )
cce713ddcc
2019-11-16 00:34:25 -08:00
Justin M. Keyes
e3b08a0fc4
Merge #11384 from janlazo/vim-8.1.2293
...
vim-patch:8.1.{927,2293}
2019-11-14 00:02:29 -08:00
James McCoy
570ee5f404
f_getenv/setenv: Access v_special when v_type is VAR_SPECIAL #11388
...
Multiple Debian builds were failing these tests:
Failures:
From test_environ.vim:
Found errors in Test_external_env():
function RunTheTest[37]..Test_external_env line 16: Expected '' but got 'FOO=null\n'
Found errors in Test_getenv():
function RunTheTest[37]..Test_getenv line 2: Expected v:null but got v:false
Found errors in Test_setenv():
function RunTheTest[37]..Test_setenv line 5: Expected v:null but got 'null'
This is because nvim has a separate tag (`v_special`) in `typval_T` for
special variables, whereas vim re-uses the `v_number` tag.
On little-endian architectures, using the incorrect tag is not an issue
because the byte representation is the same. However, on big-endian
systems this caused the `v_number == kSpecialVarNull` checks to fail,
and the non-special code to execute.
2019-11-13 21:34:10 -08:00
Jan Edmund Lazo
a0c18bf201
spell: fix clang logic error
...
https://neovim.io/doc/reports/clang/report-487b01.html#EndPath
https://neovim.io/doc/reports/clang/report-ce4c3c.html#EndPath
2019-11-13 19:25:40 -05:00
Jan Edmund Lazo
c2ceed4994
quickfix: fix dead assignment
...
Cherry-picked from vim patch 8.1.1489.
2019-11-13 19:25:40 -05:00
Jan Edmund Lazo
0cb6fc804d
vim-patch:8.1.2293: join adds trailing space when second line is empty
...
Problem: Join adds trailing space when second line is empty. (Brennan
Vincent)
Solution: Do not add a trailing space.
cc184cfb09
2019-11-13 19:25:39 -05:00
Rob Pilling
63abe3ca19
Factor out parse_one_cmd()
...
This will allow us to reuse the parsing logic elsewhere,
namely for inccommand logic.
2019-11-13 21:05:47 +00:00
Jan Edmund Lazo
c512dffb55
vim-patch:8.1.0266: parsing Ex address range is not a separate function
...
Problem: Parsing Ex address range is not a separate function.
Solution: Refactor do_one_cmd() to separate address parsing.
ee8415bc59
2019-11-13 20:59:21 +00:00
Ashkan Kiani
00dc12c5d8
lua LSP client: initial implementation ( #11336 )
...
Mainly configuration and RPC infrastructure can be considered "done". Specific requests and their callbacks will be improved later (and also served by plugins). There are also some TODO:s for the client itself, like incremental updates.
Co-authored by at-tjdevries and at-h-michael, with many review/suggestion contributions.
2019-11-13 21:55:26 +01:00
Justin M. Keyes
a24eff0e27
extmark: fix spelling of "Extmark"
...
The spelling "Extmark" is used almost everywhere, so don't spell it
"ExtMark" inconsistently.
2019-11-11 22:12:59 -08:00
Justin M. Keyes
2d7e1c32a8
extmark: rename ExtendedMark => Extmark
2019-11-11 22:12:59 -08:00
Justin M. Keyes
54473e9a67
doc [ci skip]
2019-11-11 22:12:59 -08:00
Justin M. Keyes
0190de9aab
Merge #11307 'Lua: vim.validate()'
2019-11-11 21:25:16 -08:00
Jan Edmund Lazo
8d70335b00
vim-patch:8.1.0622: adding quickfix items marks items as valid errors #11373
...
Problem: Adding quickfix items marks items as valid errors. (Daniel Hahler)
Solution: Check when items are valid. (Yegappan Lakshmanan, closes vim/vim#3683 ,
closes vim/vim#3633 )
9752c72f49
2019-11-11 21:24:25 -08:00
Björn Linse
122426966e
Merge pull request #11356 from bfredl/extmark2
...
extmark API feature
2019-11-11 21:48:14 +01:00
Björn Linse
18a8b702c0
extmark: review changes
2019-11-11 20:18:15 +01:00
timeyyy
a9065a5051
nsmarks: initial commit
2019-11-11 19:43:15 +01:00
Timothy C Eichler
e757f4d536
namespace: add ns_initialized func
2019-11-11 19:43:15 +01:00
Marco Hinz
181486d7e6
api: fix typo in debug function name
2019-11-11 19:25:10 +01:00
Justin M. Keyes
f59e1f58a2
Lua: mark some functions as "private"
...
Problem: scripts/gen_vimdoc.py gets confused and tries to generate docs
for `fn_index` and `func`.
Solution: Rename them to be private.
2019-11-11 00:43:02 -08:00
Justin M. Keyes
7a3d3257db
fix nvim__buf_stats
...
Accidentally renamed in 1cb4674547
.
2019-11-10 23:43:49 -08:00
Marco Hinz
1cb4674547
api: add nvim_buf_get_virtual_text() ( #11354 )
...
This adds the missing partner function of nvim_buf_set_virtual_text().
2019-11-10 16:38:04 +01:00
Björn Linse
3a075ce3dc
Merge pull request #11310 from bfredl/luarpc
...
lua: add vim.rpcrequest, vim.rpcnotify and vim.NIL
2019-11-10 14:46:14 +01:00
Björn Linse
474d0bcbf7
lua: vim.rpcrequest, vim.rpcnotify, vim.NIL
2019-11-10 13:08:05 +01:00
Justin M. Keyes
268252c8c7
Merge #11343 from janlazo/vim-8.1.2244
...
vim-patch:8.1.{324,1091,2244,2258,2262,2268,2270,2272}
2019-11-09 21:55:28 -08:00
Justin M. Keyes
7a23b67d35
paste: Select-mode, Visual-mode #11360
...
fix #11344
2019-11-09 21:18:51 -08:00
Jan Edmund Lazo
099c38efed
quickfix: fix pvs/v547
2019-11-09 10:11:56 -05:00
Jan Edmund Lazo
6e42eb4dc9
vim-patch:8.1.0324: off-by-one error in cmdidx check
...
Problem: Off-by-one error in cmdidx check. (Coverity)
Solution: Use ">=" instead of ">".
74c8be2c68
Fix pvs/v557.
2019-11-09 09:58:33 -05:00
Jan Edmund Lazo
2ed23af9b2
vim-patch:8.1.2272: test may hang at more prompt
...
Problem: Test may hang at more prompt.
Solution: Reset 'more' after resetting 'compatible'. (Michael Soyka)
34059e7b67
2019-11-09 09:58:32 -05:00
Jan Edmund Lazo
2a59ae0f1d
vim-patch:8.1.2270: "gf" is not tested in Visual mode
...
Problem: "gf" is not tested in Visual mode.
Solution: Add Visual mode test and test errors. (Dominique Pelle,
closes vim/vim#5197 )
0208b6b771
2019-11-09 09:58:32 -05:00
Jan Edmund Lazo
805a577f71
vim-patch:8.1.2268: spell file flag zero is not recognized
...
Problem: Spell file flag zero is not recognized.
Solution: Use -1 as an error value, so that zero can be used as a valid flag
number.
3d2a47c782
2019-11-09 09:58:32 -05:00
Jan Edmund Lazo
3e2f7baf21
vim-patch:8.1.2262: unpack assignment in function not recognized
...
Problem: Unpack assignment in function not recognized.
Solution: Skip over "[a, b]". (closes vim/vim#5051 )
1e673b9eb6
2019-11-09 09:58:32 -05:00
Jan Edmund Lazo
c3cb54b5ff
vim-patch:8.1.1091: MS-Windows: cannot use multi-byte chars in environment var
...
Problem: MS-Windows: cannot use multi-byte chars in environment var.
Solution: Use the wide API. (Ken Takata, closes vim/vim#4008 )
f0908e6fe1
2019-11-09 09:58:32 -05:00
Jan Edmund Lazo
697b0d73a7
vim-patch:8.1.2258: may get hit-enter prompt after entering a number
...
Problem: May get hit-enter prompt after entering a number. (Malcolm Rowe)
Solution: Put back accidentally deleted lines. (closes vim/vim#5176 )
dc968e7a45
2019-11-09 09:58:32 -05:00
Jan Edmund Lazo
b8a56e0986
vim-patch:8.1.2244: 'wrapscan' is not used for "gn"
...
Problem: 'wrapscan' is not used for "gn".
Solution: Only reset 'wrapscan' for the first search round. (closes vim/vim#5164 )
82cf7f6df7
2019-11-09 09:58:31 -05:00
Justin M. Keyes
9ef16a1628
doc: vim.fn, vim.call(), vim.api [ci skip]
2019-11-06 01:37:50 -08:00
Justin M. Keyes
3e21d49836
Merge #11319 'inccommand: fix issues with modifiers and prompting'
2019-11-05 17:34:21 -08:00
Rob Pilling
4f124702c0
Simplify + inline/align comment
2019-11-05 18:56:54 +00:00
Marco Hinz
610755ff62
Merge PR #11291 from shanesmith/vim-8.1.1256-take2
2019-11-04 12:28:31 +01:00
lacygoill
e2b54fda72
autocmd: Fix event name casing #11332
...
Affects getcompletion()
2019-11-04 16:18:06 +09:00
Björn Linse
93626b8af9
Merge pull request #10994 from bfredl/colorindex
...
allow pass through of :terminal palette colors with termguicolors
2019-11-03 11:07:40 +01:00
Jan Edmund Lazo
1c43fb1d51
syntax: zero-init local structs
...
Fix https://neovim.io/doc/reports/clang/report-ee5dbd.html#EndPath
2019-11-02 14:38:28 -04:00
Jan Edmund Lazo
6c5772f7da
quickfix: fix pvs/v547 error
2019-11-02 14:26:49 -04:00
Jan Edmund Lazo
4a5adae950
vim-patch:8.1.2236: ml_get error if pattern matches beyond last line
...
Problem: Ml_get error if pattern matches beyond last line.
Solution: Adjust position if needed. (Christian Brabandt, closes )
bb26596242
2019-11-02 12:21:15 -04:00
Björn Linse
cbaba19001
terminal: preserve support for g:terminal_color_X = "#1234ab"
2019-11-02 11:01:58 +01:00
Björn Linse
31137e9bc7
highlight: correctly disable index attribute with combine/blend
2019-11-02 11:01:58 +01:00
Björn Linse
08fe10010a
terminal: enable pass through indexed colors to TUI
2019-11-02 11:01:58 +01:00