Jakub Łuczyński
3477512f81
fix: header updates
2020-02-13 14:11:44 +01:00
Jakub Łuczyński
937da5dd7e
Removed redundant define
2020-02-13 14:11:42 +01:00
Jakub Łuczyński
423fcbee4a
fix: factor out make_partial
2020-02-13 14:11:40 +01:00
Jakub Łuczyński
b683957763
fix: prof functions
2020-02-13 14:11:39 +01:00
Jakub Łuczyński
04f7e1f56d
fix: var_set_global
2020-02-13 14:11:37 +01:00
Jakub Łuczyński
bae1738bce
fix: find_var_ht_dict
2020-02-13 14:11:35 +01:00
Jakub Łuczyński
e50b545676
fix: factor out new functions
...
free_unref_funccal
get_funccal_local_var
get_funccal_args_var
get_current_funccal_dict
set_ref_in_previous_funccal
set_ref_in_call_stack
set_ref_in_func_args
note:
In vim semantic for garbage_collect was changed
(the result of free_unref_funccal is ignored, bug or intentional?)
For nvim I did leave previous behavior thus
did_free = did_free || free_unref_funccal(copyID, testing);
instead of just
free_unref_funccal(copyID, testing);
2020-02-13 14:11:34 +01:00
Jakub Łuczyński
c769b15fe4
fix: func_init
2020-02-13 14:11:32 +01:00
Jakub Łuczyński
700d7a037c
unstatic some functions
2020-02-13 14:11:29 +01:00
Jakub Łuczyński
3b0475927c
moved more stuff
2020-02-13 14:11:27 +01:00
Jakub Łuczyński
dc5debadc2
created header file
2020-02-13 14:11:25 +01:00
Jakub Łuczyński
9b140fafe3
moved functions to user_funcs.c (no code changes)
2020-02-13 14:11:21 +01: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
Jan Edmund Lazo
ca08d5c191
vim-patch:8.1.0445: setting 'term' does not store location for termcap options
...
Problem: Setting 'term' does not store location for termcap options.
Solution: Set the script context for termcap options that are changed when
'term' is set.
35bc7d6c52
2020-01-29 20:30:40 -05:00
Jan Edmund Lazo
0b49cb67f2
vim-patch:8.2.0171: fix use of uninitialized buffer #11786
...
Problem: Coverity warning for using uninitialized buffer.
Solution: Check the skip flag.
9a5e5a3e33
2020-01-28 23:02:11 -08:00
Björn Linse
bfe84adb5a
options: winhighlight: fix incorrect string equality test
2020-01-28 19:10:41 +01:00
Justin M. Keyes
a4b9417c78
lint
2020-01-28 00:22:14 -08:00