aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
Commit message (Collapse)AuthorAge
* cleanup: reduce some duplicate code, avoid function pointers for a conditionBjörn Linse2019-01-23
| | | | | | | Add 'multiline' flag to history for correct :messages output Use larger buffer size for multiline messages. if this turns out to not be enough, we could do size calculation like api_set_error
* ex_echo: reuse code from message.c to show arg to userAlexandre Dubray2019-01-22
|
* ui: multigrid mouse supportBjörn Linse2019-01-20
|
* PVS/V1028: cast operands, not the resultJustin M. Keyes2019-01-18
|
* provider: improve error message if provider is missing (#9487)Marco Hinz2019-01-12
| | | | | | | | | Move `has_eval_provider()` check to `eval_call_provider()` to make sure that every code path calls it first. Previously we would, when pynvim was missing, get a nice error message for `:python3 1`, but not for `:py3file blah`. Fixes https://github.com/neovim/neovim/issues/9485
* vim-patch:8.1.0685: get_buf_tv() is named inconsistentlyJan Edmund Lazo2019-01-05
| | | | | | Problem: get_buf_tv() is named inconsistently. Solution: Rename it to tv_get_buf(). (Yegappan Lakshmanan, closes vim/vim#3759) https://github.com/vim/vim/commit/f2d79fa92d0ed90732f52dd88da4ad66c2c5ce13
* build: enable -WshadowJustin M. Keyes2019-01-02
| | | | | | | | | | Note about shada.c: - shada_read_next_item_start was intentionally shadowing `unpacked` and `i` because many of the macros (e.g. ADDITIONAL_KEY) implicitly depended on those variable names. - Macros were changed to parameterize `unpacked` (but not `i`). Macros like CLEAR_GA_AND_ERROR_OUT do control-flow (goto), so any other approach is messy.
* vim-patch:8.0.0251: not easy to select Python 2 or 3 (#9173)David Jimenez2019-01-02
| | | | | | Problem: It is not so easy to write a script that works with both Python 2 and Python 3, even when the Python code works with both. Solution: Add 'pyxversion', :pyx, etc. (Marc Weber, Ken Takata) https://github.com/vim/vim/commit/f42dd3c3901ea0ba38e67a616aea9953cae81b8d
* multigrid: rename grid->ScreenLines and other grid arraysBjörn Linse2018-12-31
|
* multigrid: Get rid of global ScreenLines and set_screengridUtkarsh Maheshwari2018-12-31
|
* multigrid: Allow UIs to set grid size different from window sizeUtkarsh Maheshwari2018-12-31
|
* provider: make :ruby provider check use same code path as :pythonMarco Hinz2018-12-12
| | | | | | | Prior to this change, the provider check for ruby was special-cased and now it returns E319, like :python etc. References #9354
* vim-patch:8.1.0564: setting v:errors to wrong type still possibleJan Edmund Lazo2018-12-06
| | | | | | Problem: Setting v:errors to wrong type still possible. Solution: Return after giving an error message. (Christian Brabandt) https://github.com/vim/vim/commit/88b53fd0521d1e62df17a8a1f2181425e9d4854c
* vim-patch:8.1.0563: setting v:errors to a string give confusing errorJan Edmund Lazo2018-12-06
| | | | | | | Problem: Setting v:errors to a string give confusing error. (Christian Brabandt) Solution: Change internal error into normal error message. https://github.com/vim/vim/commit/74ea88c170f65afa50b2b97e37806d13b4e24cd7
* vim-patch:8.0.1425: execute() does not work in completion of user command ↵Jan Edmund Lazo2018-12-06
| | | | | | | (#9317) Problem: execute() does not work in completion of user command. (thinca) Solution: Switch off redir_off and restore it. (Ozaki Kiichi, closes vim/vim#2492) https://github.com/vim/vim/commit/2095148277cf1c4e7b3bbaf4e34812b7cfe3011b
* vim-patch:8.1.0551: expression evaluation may repeat an error messageJan Edmund Lazo2018-11-30
| | | | | | | | Problem: Expression evaluation may repeat an error message. (Jason Franklin) Solution: Check for the value of did_emsg when giving an error for the :execute command. https://github.com/vim/vim/commit/8ff5af9544a2abc3d344bba017ef96682e098d9d
* vim-patch:8.1.0550: expression evaluation may repeat an error messageJan Edmund Lazo2018-11-30
| | | | | | | | Problem: Expression evaluation may repeat an error message. (Jason Franklin) Solution: Increment did_emsg and check for the value when giving an error for the echo command. https://github.com/vim/vim/commit/76a6345433bc2a600689397fb28165a2e5793720
* fix wrong winnr in getwininfoSha Liu2018-11-27
|
* jobstart(): Fix hang on non-executable cwd #9204Tommy Allen2018-11-07
| | | | | | | * os/fs.c: add os_isdir_executable() * eval.c: fix hang on job start caused by non-executable cwd option * channel.c: assert cwd is an executable directory * test: jobstart() produces error when using non-executable cwd
* vim-patch:8.1.0511: ml_get error when calling a function with a range (#9207)Jan Edmund Lazo2018-11-06
| | | | | Problem: ml_get error when calling a function with a range. Solution: Don't position the cursor after the last line. https://github.com/vim/vim/commit/9e353b5265bd7fa103caf4e5a9b3c99f344f548e
* api: simplify nvim_buf_get_offset functionBjörn Linse2018-11-01
|
* fix warning: "Uninitialized argument"Justin M. Keyes2018-10-21
| | | | | | clang scan-build thinks os_system() could set `do_profiling` flag. Found by clang scan-build 5.0
* lintJan Edmund Lazo2018-10-09
|
* vim-patch:8.0.1423: error in return not caught by try/catchJan Edmund Lazo2018-10-09
| | | | | | Problem: Error in return not caught by try/catch. Solution: Call update_force_abort(). (Yasuhiro Matsomoto, closes vim/vim#2483) https://github.com/vim/vim/commit/fabaf753e26df5a89a854673d14c15a1fa6b321a
* Merge #9036 'func_attr_printf'Justin M. Keyes2018-10-07
|\
| * src/nvim/eval.cMichaHoffmann2018-10-07
| | | | | | | | | | | | | | | | | | | | src/nvim/eval/typval.c src/nvim/fileio.c src/nvim/main.c src/nvim/regexp_nfa.c src/nvim/spellfile.c changed some EMSG[..] Macros to emsgf
| * fixed lint errorsMichaHoffmann2018-09-24
| |
| * src/nvim/eval.c: printf errorMichaHoffmann2018-09-24
| |
| * add func_attr_printf in :MichaHoffmann2018-09-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | log.c message.c strings.c fixed some printf warnings in: src/nvim/undo.c src/nvim/eval.c src/nvim/eval/encode.c src/nvim/eval/typval.c src/nvim/ex_getln.c src/nvim/fileio.c src/nvim/lua/executor.c src/nvim/main.c src/nvim/regexp_nfa.c src/nvim/shada.c src/nvim/spellfile.c src/nvim/tui/terminfo.c src/nvim/garray.h
* | vim-patch:8.0.1832: cannot use :unlet for an environment variableJan Edmund Lazo2018-10-02
| | | | | | | | | | | | | | Problem: Cannot use :unlet for an environment variable. Solution: Make it work. Use unsetenv() if available. (Yasuhiro Matsumoto, closes vim/vim#2855) https://github.com/vim/vim/commit/137374fd6538cf9dee0cb22907728d8fdecb5832
* | vim-patch:8.1.0068: nasty autocommands can still cause using freed memoryJan Edmund Lazo2018-09-30
|/ | | | | | Problem: Nasty autocommands can still cause using freed memory. Solution: Disallow using setloclist() and setqflist() recursively. https://github.com/vim/vim/commit/2f82ca7d79148ae931bf28a747ede06ba8a65de8
* shell/logging: Fix E730 with verbose system({List}) #9009Justin M. Keyes2018-09-21
| | | | | | | | ref https://github.com/neovim/neovim/issues/9001#issuecomment-421843790 Steps to reproduce: :set verbose=9 :call system(['echo']) E730: using List as a String
* replace fallthrough comment with macroJan Edmund Lazo2018-09-21
| | | | Follow-up of vim-patch:8.0.1215
* Update eval.cWang Shidong2018-09-13
|
* vim-patch:8.0.1172: when E734 is given option is still set (#8988)Jan Edmund Lazo2018-09-13
| | | | | Problem: When E734 is given option is still set. Solution: Assign NULL to "s". (Christian Brabandt) https://github.com/vim/vim/commit/2a6a6c3014e728cd01c750b0f60484d4eaf22a8c
* Merge pull request #8945 from ZviRackover/fix-7401-step5Björn Linse2018-09-11
|\ | | | | mbyte: remove mb_char2bytes
| * lint: clean-up after parent commitsZviRackover2018-09-09
| |
| * Remove has_mbytes local to lines changed in parent commitZviRackover2018-09-09
| |
| * Refactor: Remove occurences of mb_char2bytesZviRackover2018-09-09
| |
* | Merge pull request #8974 from janlazo/vim-8.0.1377Justin M. Keyes2018-09-11
|\ \
| * | vim-patch:8.0.1378: autoload script sources itself when defining functionJan Edmund Lazo2018-09-09
| | | | | | | | | | | | | | | | | | | | | Problem: Autoload script sources itself when defining function. Solution: Pass TFN_NO_AUTOLOAD to trans_function_name(). (Yasuhiro Matsumoto, closes vim/vim#2423) https://github.com/vim/vim/commit/3388d334572f9d65a603d09d75e363805d96c5d9
| * | vim-patch:8.0.1377: cannot call a dict function in autoloaded dictJan Edmund Lazo2018-09-09
| | | | | | | | | | | | | | | | | | Problem: Cannot call a dict function in autoloaded dict. Solution: Call get_lval() passing the read-only flag. https://github.com/vim/vim/commit/6e65d594aa33be11f6074f26e9ff81b52504c62b
* | | vim-patch:8.1.0011: maparg() and mapcheck() confuse empty and non-existing ↵Jan Edmund Lazo2018-09-10
|/ / | | | | | | | | | | | | (#8976) Problem: maparg() and mapcheck() confuse empty and non-existing. Solution: Return <Nop> for an existing non-empty mapping. (closes vim/vim#2940) https://github.com/vim/vim/commit/f88a5bc10232cc3fac92dba4e8455f4c14311f8e
* | vim-patch:8.0.1115: crash when using foldtextresult() recursively (#8972)Jan Edmund Lazo2018-09-09
| | | | | | | | | | Problem: Crash when using foldtextresult() recursively. Solution: Avoid recursive calls. (Yasuhiro Matsumoto, closes vim/vim#2098) https://github.com/vim/vim/commit/495b7dd213e096361e6f15e7aed313c1d63d9d3e
* | vim-patch:8.0.1006: quickfix list changes when parsing text with 'erroformat'Jan Edmund Lazo2018-09-07
|/ | | | | | | Problem: Cannot parse text with 'erroformat' without changing a quickfix list. Solution: Add the "text" argument to getqflist(). (Yegappan Lakshmanan) https://github.com/vim/vim/commit/7adf06f4e25c795ba32ff0b2e8591330f6a41afb
* globals: cmd_silent is boolJan Edmund Lazo2018-08-29
|
* vim-patch:8.1.0214 fixup: remove feature-guardJustin M. Keyes2018-08-28
| | | | | | FEAT_AUTOCHDIR is not defined for Nvim. ref #8927
* vim-patch:8.1.0214 (#8927)Vivek R2018-08-28
| | | | | | | Problem: +autochdir feature not reported by has() or :version. Solution: Add the feature in the list. Author: Bram Moolenaar <Bram@vim.org> https://github.com/vim/vim/commit/83ec2a7f5fb481b30a5d556b6aad49a62585bccd
* vim-patch:8.0.1242: function argument with only dash is seen as number zeroJan Edmund Lazo2018-08-22
| | | | | | | Problem: Function argument with only dash is seen as number zero. (Wang Shidong) Solution: See a dash as a string. (Christian Brabandt) https://github.com/vim/vim/commit/ffd99f729bd806e09d9355ede9c17780b61057bf
* vim-patch:8.1.0184: not easy to figure out the window layoutJan Edmund Lazo2018-08-15
| | | | | | Problem: Not easy to figure out the window layout. Solution: Add "wincol" and "winrow" to what getwininfo() returns. https://github.com/vim/vim/commit/b6959a8e06cef6d2126b030b2f8acd49457a3582