Justin M. Keyes
a2efc9cf8b
loop_close: timout after 2 seconds #11821
...
never UV_RUN_DEFAULT
ref #11820
ref #7376
2020-02-16 23:54:24 -08:00
Justin M. Keyes
03f245c0b8
Merge #11873 from janlazo/vim-8.1.0786
...
vim-patch:8.0.1660,8.1.{43,786,1201,2129,2131,2187,2223,2259},8.2.{241,267}
2020-02-16 23:18:24 -08:00
Justin M. Keyes
6e13b9d261
test/LSP: assert contents of log file
2020-02-16 22:09:28 -08:00
Jan Edmund Lazo
1ce4b3c9a7
vim-patch:8.2.0267: no check for a following cmd when calling a function fails
...
Problem: No check for a following command when calling a function fails.
Solution: Also check for a following command when inside a try block.
(closes vim/vim#5642 )
e51bb17dd0
2020-02-16 18:04:44 -05:00
Jan Edmund Lazo
acc5fd9fac
vim-patch:8.1.0043: ++bad argument of :edit does not work properly
...
Problem: ++bad argument of :edit does not work properly.
Solution: Return FAIL from get_bad_opt() only when there is no valid
argument. (Dominique Pelle, Christian Brabandt, closes vim/vim#2966 ,
closes vim/vim#2947 )
7580849df9
2020-02-16 09:38:15 -05:00
Jan Edmund Lazo
18d86283b0
vim-patch:8.0.1660: the terminal API "drop" command doesn't support options
...
Problem: The terminal API "drop" command doesn't support options.
Solution: Implement the options.
333b80acf3
2020-02-16 09:38:14 -05:00
Jan Edmund Lazo
7955c05acc
vim-patch:8.1.1201: output of :command is hard to read
...
Problem: Output of :command is hard to read.
Solution: Make some columns wider, some narrower. Truncate the command when
listing all.
725310d89e
2020-02-16 07:49:44 -05:00
Jan Edmund Lazo
986eafce47
vim-patch:8.1.2187: error for bad regexp even though regexp is not used
...
Problem: Error for bad regexp even though regexp is not used when writing
a file. (Arseny Nasokin)
Solution: Ignore regexp errors. (closes vim/vim#5059 )
b40c2576d4
2020-02-16 07:49:44 -05:00
Jan Edmund Lazo
5e38516a46
vim-patch:8.2.0241: crash when setting 'buftype' to "quickfix"
...
Problem: Crash when setting 'buftype' to "quickfix".
Solution: Check that error list is not NULL. (closes vim/vim#5613 )
99234f29aa
2020-02-16 07:49:44 -05:00
Jan Edmund Lazo
bde4f47eb2
vim-patch:8.1.2223: cannot see what buffer an ml_get error is for
...
Problem: Cannot see what buffer an ml_get error is for.
Solution: Add the buffer number and name in the message
cb86893114
2020-02-16 07:49:44 -05:00
Jan Edmund Lazo
0f5bb9faf1
vim-patch:8.1.0786: ml_get error when updating the status line
...
Problem: ml_get error when updating the status line and a terminal had its
scrollback cleared. (Chris Patuzzo)
Solution: Check the cursor position when drawing the status line.
(closes vim/vim#3830 )
10772307c4
2020-02-16 07:49:43 -05:00
Jan Edmund Lazo
4907bc2626
vim-patch:8.1.2259: running tests may leave XfakeHOME behind
...
Problem: Running tests may leave XfakeHOME behind.
Solution: Source summarize.vim without using setup.vim. (closes vim/vim#5177 )
Also fix that on MS-Windows the test log isn't echoed.
7d2320414f
2020-02-16 07:49:43 -05:00
Jan Edmund Lazo
e52c22d63c
vim-patch:8.1.2131: MSVC tests fail
...
Problem: MSVC tests fail.
Solution: Replace backslashes with slashes.
c25e702dee
2020-02-16 07:49:43 -05:00
Jan Edmund Lazo
e5aeb2e193
vim-patch:8.1.2129: using hard coded executable path in test
...
Problem: Using hard coded executable path in test.
Solution: Use v:progpath. Use $VIMRUNTIME instead of "runtime". (James
McCoy, closes vim/vim#5025 )
1ac41a5c13
2020-02-16 07:49:43 -05:00
Matthieu Coudron
bb331a9b31
mouse.c: can click on multibyte foldopen/foldclose ( #11863 )
...
would previously only work with ascii fillchars.
Added a test.
2020-02-14 16:42:00 +01:00
Bruno Roy
a26943e9b3
clang bug: Dead assignment ns_id
...
Remove a dead assignment of the `ns_id` variable in the
`src/nvim/api/buffer.c` file.
Refer: https://neovim.io/doc/reports/clang/report-f279da.html#EndPath
2020-02-13 23:09:42 -08:00
erw7
d54b5997b7
Fix issue where callbacks are garbage collected
...
Import necessary part of vim-patch:8.1.1575.
75a1a9415b
2020-02-12 16:03:54 +09:00
erw7
aec3d7915c
vim-patch:8.1.0091: MS-Windows: Cannot interrupt gdb when program is running
...
Problem: MS-Windows: Cannot interrupt gdb when program is running.
Solution: Add debugbreak() and use it in the terminal debugger.
Respect 'modified' in a prompt buffer.
4551c0a9fc
2020-02-12 16:03:45 +09:00
erw7
f320db3450
vim-patch:8.1.0070: missing part of the changes for prompt_setinterrupt()
...
Problem: Missing part of the changes for prompt_setinterrupt().
Solution: Add the missing changes.
222cd20e26
2020-02-12 15:30:17 +09:00
erw7
fe395ae210
vim-patch:8.1.0069: cannot handle pressing CTRL-C in a prompt buffer
...
Problem: Cannot handle pressing CTRL-C in a prompt buffer.
Solution: Add prompt_setinterrupt().
0e5979a6d4
2020-02-12 15:30:06 +09:00
erw7
783aecd501
vim-patch:8.1.0036: not restoring Insert mode if leaving prompt buffer with mouse
...
Problem: Not restoring Insert mode if leaving a prompt buffer by using a
mouse click.
Solution: Set b_prompt_insert appropriately. Also correct cursor position
when moving cursor to last line.
891e1fd894
2020-02-12 15:16:32 +09:00
erw7
3ca0343fb9
vim-patch:8.1.0032: BS in prompt buffer starts new line
...
Problem: BS in prompt buffer starts new line.
Solution: Do not allows BS over the prompt. Make term_sendkeys() handle
special keys. Add a test.
6b810d92a9
2020-02-12 15:16:32 +09:00
erw7
4813ad48cd
vim-patch:8.1.0027: difficult to make a plugin that feeds a line to a job
...
Problem: Difficult to make a plugin that feeds a line to a job.
Solution: Add the nitial code for the "prompt" buftype.
f273245f64
2020-02-12 15:16:32 +09:00
Björn Linse
7d7adf7acc
treesitter: cleanup some luahl stuff
2020-02-10 13:10:15 +01:00
Björn Linse
95fd28f4a1
treesitter: use internal "decorations" buffer
2020-02-10 13:10:15 +01:00
Jakub Łuczyński
6c5bbf07d9
eval.c: factor out eval/funcs.c #11828
...
close #11828
ref #5081
cf. vim patch 7.4.2063
2020-02-10 00:36:26 -08:00
Björn Linse
ba3778f83b
build: always create build/lib/nvim so the install command doesn't fail
2020-02-09 14:21:58 +01:00
Björn Linse
70c212e480
vim-patch:8.2.0235: draw error when an empty group is removed from 'statusline'
...
Problem: Draw error when an empty group is removed from 'statusline'.
Solution: Do not use highlighting from a removed group.
dbe5d361fe
2020-02-09 09:42:26 +01:00
Matthieu Coudron
712298e1d3
build: allow to skip treesitter C parser install
...
if USE_BUNDLED_TS_PARSERS is set to off, don't try to install the
parser.
Distribs can install treesitter parsers directly into $CMAKE_LIBRARY_PATH/nvim
(and users anywhere in rtp).
Also fix the URL.
2020-02-07 20:42:27 +01:00
Björn Linse
ef2e6522c5
tests: bail out on libdir just like $VIMRUNTIME, it cannot be calculated
2020-02-07 09:32:25 +01:00
Björn Linse
00c57c98df
treesitter: add standard &rtp/parser/ search path for parsers
2020-02-07 09:22:55 +01:00
Björn Linse
64807303df
build: include tree-sitter-c parser in bundled build
2020-02-07 09:22:55 +01:00
Björn Linse
c5b812c9ea
env: try find library dir (like /usr[/local]/lib/nvim) and add it to &rtp
2020-02-07 09:22:55 +01:00
Björn Linse
7ce9a5c7da
api: add nvim_get_runtime_file for finding runtime files
2020-02-07 09:22:55 +01:00
Justin M. Keyes
2af04e1997
lint
2020-02-02 22:14:40 -08:00
Justin M. Keyes
efa5af9043
refactor: rename mch_exit => os_exit
...
- No code changes
- Move it to main.c
2020-02-02 22:14:40 -08:00
Justin M. Keyes
d1d5f5103e
refactor: move various things to os/shell.c
...
- No code changes
- Rename mch_expand_wildcards => os_expand_wildcards
2020-02-02 22:14:40 -08:00
Björn Linse
3051342f96
Merge pull request #11801 from bfredl/incsubcrash
...
extmark: fix crash due to invalid column values in inccommand preview
2020-02-02 12:50:57 +01:00
Björn Linse
459a362cc1
extmarks: fix crash due to invalid column values in inccommand preview
...
This used to use -1 and MAXCOL values. Make sure in range values are
used.
2020-02-02 10:50:48 +01:00
Jan Edmund Lazo
5032bc8514
vim-patch:8.1.1269: MS-Windows GUI: multibyte chars with a 0x80 byte do not work
...
Problem: MS-Windows GUI: multibyte chars with a 0x80 byte do not work when
compiled with VIMDLL.
Solution: Adjust the condition for fixing the input buffer. (Ken Takata,
closes vim/vim#4330 )
ed5ab2a959
2020-02-02 03:14:39 -05:00
Jan Edmund Lazo
d6625349f5
vim-patch:8.1.0140: recording into a register has focus events
...
Problem: Recording into a register has focus events. (Michael Naumann)
Solution: Don't record K_FOCUSGAINED and K_FOCUSLOST. (closes vim/vim#3143 )
972bfddc6b
2020-02-01 22:15:21 -05:00
Jan Edmund Lazo
9c1a31927d
vim-patch:8.2.0161: not recognizing .gv file as dot filetype
...
Problem: Not recognizing .gv file as dot filetype.
Solution: Add *.gv to dot pattern. (closes vim/vim#5544 )
f8ddb25789
2020-02-01 18:06:34 -05:00
Alkeryn
26199fedca
vim-patch:8.2.0190: detect Kotlin files [ci skip] #11796
...
Problem: Kotlin files are not recognized.
Solution: Detect Kotlin files. (Alkeryn, closes vim/vim#5560 )
ab067a21b9
2020-02-01 14:15:36 -08:00
Hye Sung Jung
14a8b3b98c
doc: fix typos [ci skip] #11787
2020-01-30 22:56:34 -08:00
Jan Edmund Lazo
ef11b800ac
vim-patch:8.2.0016: test name used twice, option not restored properly
...
Problem: Test name used twice, option not restored properly.
Solution: Rename function, restore option with "&".
a48e78e11f
2020-01-30 21:30:40 -05:00
Jan Edmund Lazo
63983316bd
vim-patch:8.2.0014: test69 and test95 are old style
...
Problem: Test69 and test95 are old style.
Solution: Convert to new style tests. (Yegappan Lakshmanan, closes vim/vim#5365 )
afc13bd827
2020-01-30 21:29:21 -05:00
Axel Forsman
2538e61513
Fix shift change callbacks reading bad cursor ( #11782 )
...
Sloppy code inherited from Vim caused user scripts to be able
to observe the cursor line in an invalid intermediary state,
due to Neovim change callbacks being unbuffered unlike Vim listeners.
Manifested in Vimscript executed from the callback possibly erroring
when `:call`:ing any function,
due to the implicit range `curwin->w_cursor.lnum,curwin->w_cursor.lnum`
failing validation.
Fixed by deferring the call to `changed_lines()` until after
`curwin->w_cursor.lnum` gets its correct value.
2020-01-30 07:34:34 +01:00
Jan Edmund Lazo
b7447a909f
vim-patch:8.2.0177: memory leak in get_tags()
...
Problem: Memory leak in get_tags().
Solution: Free matches when finding a pseudo-tag line. (Dominique Pelle,
closes vim/vim#5553 )
70b3e706b4
2020-01-29 22:18:58 -05:00
Jan Edmund Lazo
31f31b40a8
vim-patch:8.2.0077: settagstack() cannot truncate at current index
...
Problem: settagstack() cannot truncate at current index.
Solution: Add the "t" action. (Yegappan Lakshmanan, closes vim/vim#5417 )
271fa08a35
2020-01-29 21:00:11 -05:00
Jan Edmund Lazo
f719b8898b
vim-patch:8.1.0446: options test fails in the GUI
...
Problem: Options test fails in the GUI.
Solution: Don't try changing 'term' in the GUI.
4f88875725
2020-01-29 20:31:16 -05:00