Commit Graph

15322 Commits

Author SHA1 Message Date
Jakub Łuczyński
e367e80e11 fix: moved macros 2020-02-13 14:11:52 +01:00
Jakub Łuczyński
c7ef0e8d2d fix: moved some static inline function 2020-02-13 14:11:50 +01:00
Jakub Łuczyński
3c413f1523 fix: vvlua_partial 2020-02-13 14:11:48 +01:00
Jakub Łuczyński
1e0a9b2690 fix: made eval_lavars_used global 2020-02-13 14:11:47 +01:00
Jakub Łuczyński
9d7ce03ef1 fix: include static function declarations 2020-02-13 14:11:45 +01:00
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
Justin M. Keyes
68de6b17b8
Merge #10433 from erw7/vim-8.1.0027
vim-patch:8.1.{27,32,36,69,70,71,91,92}
2020-02-12 00:24:50 -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
3557757a3c vim-patch:8.1.0092: prompt buffer test fails
Problem:    Prompt buffer test fails.
Solution:   Set 'nomodified' before closing the window. (Ozaki Kiichi,
            closes vim/vim#3051
71ef1ba5e9
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
b015c4741c vim-patch:8.1.0071: terminal debugger only works with the terminal feature
Problem:    Terminal debugger only works with the terminal feature.
Solution:   Make it also work with a prompt buffer.  Makes it possible to use
            on MS-Windows. Various other improvements. (closes vim/vim#3012)
b3307b5e7e
2020-02-12 15:30:17 +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
Matthieu Coudron
58ec72f9fd
LSP: rename validate_command to _cmd_parts #11847
and now only accepts a list of strings (instead of string or list).
2020-02-11 21:48:25 -08:00
Jesse-Bakker
5d5b068d5b
LSP: Refine formatting tabSize #11834
Use the logic explained in the softtabstop help section for defining
the tabSize parameter in formatting requests. This means that:

 - if softtabstop is 0, tabstop is used
 - if softtabstop < 0, shiftwidth is used
 - if softtabstop > 0, softtabstop is used

When inserting spaces instead of tabs, softtabstop is used in vim.
Therefor it would be more logical to use it when formatting instead
of the current tabstop.
2020-02-10 22:53:14 -08:00
Matthieu Coudron
2572c5d093
Merge pull request #11845 from rht/master
doc/manpage: Remove the extra nvim subdirectory
2020-02-11 02:45:36 +01:00
Björn Linse
e14fae81e9
Merge pull request #11848 from fwalch/build-tree-sitter-out-of-source
Build tree-sitter-c out-of-source
2020-02-10 23:32:47 +01:00
Florian Walch
3f217741ec Build tree-sitter out-of-source
Avoids having CMakeCache.txt etc in https://github.com/neovim/deps, where it can cause trouble for Ubuntu PPA builds such as:

> CMake Error: The source "/<<BUILDDIR>>/neovim-0.5.0+ubuntu1+git202002090924-1f479ff-00e710e/.deps/build/src/treesitter-c/CMakeLists.txt" does not match the source "/home/travis/build/neovim/bot-ci/build/deps-src/build/src/treesitter-c/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
2020-02-10 21:52:33 +01:00
Björn Linse
a723d60549
Merge pull request #11842 from bfredl/decotest
treesitter: use internal "decorations" buffer
2020-02-10 18:09:50 +01: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
rht
29d66288ef
doc/manpage: Remove the extra nvim subdirectory 2020-02-10 07:10:06 -05: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
rht
d34f042ed5
doc/manpage: reference $VIM instead of /usr/local/share #11840 [ci skip] 2020-02-09 16:43:06 -08:00
Mathias Fußenegger
174f7a2980 lsp: Support text edit on inactive buffer (#11843)
Using `vim.lsp.buf.rename()` can result in receiving a TextEdit that
affects a file for which there is no active or loaded buffer.

In that case `api.nvim_buf_get_lines(...)` returned an empty result,
leading to an error.

Closes https://github.com/neovim/neovim/issues/11790
2020-02-10 09:05:42 +09:00
Björn Linse
31614d3eb0 Merge pull request #11841 from bfredl/libdir
build: always create build/lib/nvim so the install command doesn't fail
2020-02-09 19:02:01 +01: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
1ece24a329 Merge pull request #11836 from bfredl/vim-dbe5d361feb6
vim-patch:8.2.0235: draw error when an empty group is removed from 'statusline'
2020-02-09 10:45:32 +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
Hirokazu Hata
dd8b29cfe2
LSP: set InitializeParams.rootPath value #11838
InitializeParams.rootPath is deprecated now. But some language servers still use it.
2020-02-08 22:51:02 -08:00
Björn Linse
1f479fffbf
Merge pull request #11830 from teto/treesitter_fix
build: allow to use non-bundled C parser
2020-02-07 21:55:43 +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
120a4c8e25
Merge pull request #11757 from bfredl/treesitter_runtime
treesitter: add standard search path for parsers + bundle c parser properly
2020-02-07 10:41:02 +01:00
Justin M. Keyes
017b25101a
Merge #11827 'deps/MSVC: gettext 0.20.1'
fix #8164
close #11771
2020-02-07 00:54:59 -08: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