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
ece3d19b02
Merge #11004 'test/Screen:expect: support "{MATCH:…}"'
2019-11-09 23:16:52 -08:00
Justin M. Keyes
4abb67c027
test/Screen:expect: replace "{IGNORE}" with "{MATCH:…}"
...
ref #11004
2019-11-09 22:26:01 -08:00
Daniel Hahler
c0abaf9ca6
tests: Screen:expect: support "{MATCH:…}"
2019-11-09 21:58:28 -08: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
Jan Edmund Lazo
5689008060
build: add shlint target for shellcheck ( #11350 )
2019-11-09 13:39:01 +01:00
Marco Hinz
9fb278ddea
vim-patch.sh: multiline printf -> heredoc ( #11351 )
...
The following script is cut out from vim-patch.sh:
```sh
#!/usr/bin/env bash
BASENAME=vim-patch.sh
printf "\nInstructions:
To port one of the above patches to Neovim, execute this script with the patch revision as argument and follow the instructions, e.g.
'%s -p v8.0.1234', or '%s -P v8.0.1234'
NOTE: Please port the _oldest_ patch if you possibly can.
You can use '%s -l path/to/file' to see what patches are missing for a file.
" "${BASENAME}" "${BASENAME}" "${BASENAME}"
```
The code itself should be correct, but shellcheck 0.7.0 says:
```
In /tmp/test.sh line 5:
printf "\nInstructions:
^-- SC2183: This format string has 2 variables, but is passed 3 arguments.
```
We also had a problem before that a `%s` was added, but the accompanying
argument to printf was forgotten. Using a heredoc is less error-prone, since we
insert variables directly.
2019-11-08 20:47:58 +01:00
Marco Hinz
2ba212e8c2
vim-patch.sh: add missing argument
...
[skip ci]
2019-11-08 15:18:01 +01:00
Justin M. Keyes
f79369d420
Merge #11277 'doc [ci skip]'
2019-11-06 01:49:33 -08:00
Justin M. Keyes
9ef16a1628
doc: vim.fn, vim.call(), vim.api [ci skip]
2019-11-06 01:37:50 -08:00
Ashkan Kiani
c66297452c
doc: file-change-detect [ci skip]
2019-11-05 21:50:48 -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
Björn Linse
f707a7ef68
terminal: add tests for palette color forwarding
2019-11-03 10:14:58 +01:00
Justin M. Keyes
75ad558747
Merge #11324 from janlazo/vim-8.1.2235
...
vim-patch:8.1.{2235,2236}
2019-11-03 05:13:52 +09: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
33cdff1b5c
test/screen: make snapshot_util() work properly in rgb_cterm mode
2019-11-02 11:01:58 +01: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
Rob Pilling
0cee300194
Simplify split_success logic
2019-11-02 09:31:48 +00:00
Björn Linse
eb509dc7c5
tui: simplify branching of rgb vs cterm colors
2019-11-02 09:58:25 +01:00
Jan Edmund Lazo
63ab994fba
vim-patch:8.1.2235: "C" with 'virtualedit' set does not include multi-byte char
...
Problem: "C" with 'virtualedit' set does not include multi-byte char.
Solution: Include the whole multi-byte char. (Nobuhiro Takasaki,
closes vim/vim#5152 )
77ccc00340
2019-11-01 22:29:48 -04:00
erw7
90981f5861
update_version_stamp.lua: Use NUL on Windows #11323
2019-11-02 04:54:59 +09:00
Jan Edmund Lazo
471427d045
vim-patch:8.1.2231: introduce gM command #11321
...
Problem: Not easy to move to the middle of a text line.
Solution: Add the gM command. (Yasuhiro Matsumoto, closes vim/vim#2070 )
8b530c1ff9
2019-11-01 13:43:20 +09:00
Shane Smith
98d7c7db12
Minor updates and comment format fixes
...
- cursel argument for qf_list_entry() changed from int to bool
- Return type of qf_list_has_valid_entries() changed from int to bool
- Unnecessary size_t casting in qf_new_list removed
- Use Doxygen-style comment blocks for functions
2019-11-01 00:25:51 -04:00
Rob Pilling
36b4191e41
Document skip_colon_white()
2019-10-31 23:21:14 +00:00
Rob Pilling
d04ab11f24
Prevent prompts during inccommand previews
...
For example, "Backwards range given, OK to swap (y/n)?" on each keypress.
2019-10-31 19:22:22 +00:00
Rob Pilling
d52d782389
Prevent :topleft, etc modifying the inccommand preview window
2019-10-31 19:16:52 +00:00
Rob Pilling
1f6ce1f97d
Only apply 'icm' substitutions when preview was successfully opened
2019-10-31 19:16:52 +00:00
Rob Pilling
1c7aa11312
Allow multiple leading colons before and after modifiers for 'inccommand'
2019-10-31 19:16:52 +00:00
Rob Pilling
3b3d217754
Factor out skip_colon_white()
2019-10-31 19:16:52 +00:00
Rob Pilling
d4384cbbf3
Remove unnecessary expr in 'icm' test
2019-10-31 18:55:43 +00:00
Justin M. Keyes
efaf4732e2
lua/executor.c: use TRY_WRAP
2019-10-29 22:39:07 -07:00