aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
Commit message (Collapse)AuthorAge
...
* vim-patch:7.4.1589Michael Ennen2016-12-12
| | | | | | | Problem: Combining dict and args with partial doesn't always work. Solution: Use the arguments from the partial. https://github.com/vim/vim/commit/9e63f61cb01c70fd71652f54b2d01ee27b2a3534
* vim-patch:7.4.1586Michael Ennen2016-12-12
| | | | | | | Problem: Nesting partials doesn't work. Solution: Append arguments. (Ken Takata) https://github.com/vim/vim/commit/8a1bb046378f4bc68d6a04af2eab80fb3ce04da6
* vim-patch:7.4.1585Michael Ennen2016-12-12
| | | | | | | | Problem: Partial is not recognized everywhere. Solution: Check for partial in trans_function_name(). (Yasuhiro Matsumoto) Add a test. https://github.com/vim/vim/commit/d22a18928ebcb465393da1418bb88204b97badb1
* vim-patch:7.4.1582Michael Ennen2016-12-12
| | | | | | | | | Problem: Get E923 when using function(dict.func, [], dict). (Kent Sibilev) Storing a function with a dict in a variable drops the dict if the function is script-local. Solution: Translate the function name. Use dict arg if present. https://github.com/vim/vim/commit/6f2e4b36c9d9908e1cace2b1b96e2c154a837bc2
* vim-patch:7.4.1581Michael Ennen2016-12-12
| | | | | | | | | Problem: Using ":call dict.func()" where the function is a partial does not work. Using "dict.func()" where the function does not take a Dictionary does not work. Solution: Handle partial properly in ":call". (Yasuhiro Matsumoto) https://github.com/vim/vim/commit/65639032bb7b17996cd255d1508a1df4ad528a1f
* vim-patch:7.4.1580Michael Ennen2016-12-12
| | | | | | | Problem: Crash when using function reference. (Luchr) Solution: Set initial refcount. (Ken Takata) https://github.com/vim/vim/commit/7a5c46a9df7ef01a4f6a620861c35400d5ad28d9
* vim-patch:7.4.1577Michael Ennen2016-12-12
| | | | | | | Problem: Cannot pass "dict.Myfunc" around as a partial. Solution: Create a partial when expected. https://github.com/vim/vim/commit/ab1fa3955f25dfdb7e329c3bd76e175c93c8cb5e
* vim-patch:7.4.1564Michael Ennen2016-12-12
| | | | | | | Problem: An empty list in function() causes an error. Solution: Handle an empty list like there is no list of arguments. https://github.com/vim/vim/commit/346418c624f1bc7c04c98907134a2b284e6452dd
* vim-patch:7.4.1559Michael Ennen2016-12-12
| | | | | | | Problem: Passing cookie to a callback is clumsy. Solution: Change function() to take arguments and return a partial. https://github.com/vim/vim/commit/1735bc988c546cc962c5f94792815b4d7cb79710
* vim-patch:7.4.1867James McCoy2016-12-11
| | | | | | | Problem: Memory leak in test_matchstrpos. Solution: Free the string before overwriting. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/3c809343c72d9964475f421fd03bb892bc584a51
* Merge #5752 from justinmk/docJustin M. Keyes2016-12-11
|\ | | | | doc: api_info(), typval_encode.h
| * doc: eval/typval_encode.hJustin M. Keyes2016-10-31
| | | | | | | | Annotate TYPVAL_ENCODE_DEFINE_CONV_FUNCTIONS to aid code navigation.
* | test: jobstart()Justin M. Keyes2016-12-11
| |
* | jobstart(): Return -1 if cmd is not executable. #5671Aaron Williamson2016-12-10
| | | | | | | | Closes #5465
* | vim-patch:7.4.1685Michael Ennen2016-12-06
| | | | | | | | | | | | | | Problem: There is no easy way to get all the information about a match. Solution: Add matchstrpos(). (Ozaki Kiichi) https://github.com/vim/vim/commit/7fed5c18f8577b75404b80d8b9a9907b1bbd27e4
* | Add v:exitingMarco Hinz2016-12-01
| | | | | | | | | | | | | | | | | | Contains the exit value nvim will use. Before exiting, it is v:null. That way jobs or autocmds (in VimLeavePre or VimLeave) can check if Neovim is about to quit and with what exit value. Closes #4666.
* | Merge pull request #5664 from brcolow/vim-7.4.1707James McCoy2016-12-01
|\ \ | | | | | | vim-patch:7.4.1707
| * | vim-patch:7.4.1707Michael Ennen2016-11-25
| | | | | | | | | | | | | | | | | | | | | Problem: Cannot use empty dictionary key, even though it can be useful. Solution: Allow using an empty dictionary key. https://github.com/vim/vim/commit/0921ecff1c5a74541bad6c073e8ade32247403d8
* | | vim-patch:7.4.2071Michael Ennen2016-11-29
| | | | | | | | | | | | | | | | | | | | | Problem: The return value of type() is difficult to use. Solution: Define v:t_ constants. (Ken Takata) https://github.com/vim/vim/commit/f562e72df726c6191fa305e1c0a113f1cfb87f76
* | | startup: Initialize v:count1 (#5656)Marco Hinz2016-11-28
| | | | | | | | | | | | | | | | | | | | | | | | The man plugin uses `v:count == v:count1` to detect if a count was explicitly given. Unfortunately v:count1 does _not_ default to 1 but 0 during startup. Now we set v:count1 to 1 early. Fixes https://github.com/neovim/neovim/issues/5655
* | | vim-patch:7.4.1660Shougo Matsushita2016-11-22
|/ / | | | | | | | | | | | | Problem: has('patch-7.4.1') doesn't work. Solution: Fix off-by-one error. (Thinca) https://github.com/vim/vim/commit/819821c5a95fc60797ecbb5e5ca1302e397e3d9a
* | jobs: ensure calling jobclose() on a pty job sends SIGHUP. Closes #5619Björn Linse2016-11-17
| |
* | l10n: Update Ukrainian translation (#5567)Anatolii Sakhnik2016-11-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix translation of the term 'tag' Prefer native word instead of transliteration * Update uk.po automatically Run make update-po-uk in src/nvim/po * Update fuzzy translations in uk.po * Translate missing msgstr * Fix layout of the front page * Apply cleanup.vim Additionally, remove irrelevant and confusing comments * Copy uk.po into uk.cp1251.po
* | vim-patch:7.4.1894James McCoy2016-11-15
| | | | | | | | | | | | | | Problem: Cannot get the window ID for a mouse click. Solution: Add v:mouse_winid. https://github.com/vim/vim/commit/511972d810ea490955161ff5097ec2f57919ceaf
* | vim-patch:7.4.1892James McCoy2016-11-15
| | | | | | | | | | | | | | Problem: balloon eval only gets the window number, not the ID. Solution: Add v:beval_winid. https://github.com/vim/vim/commit/c9721bdc63378cc6123e775ffe43e9cba30322b3
* | vim-patch:8.0.0035 (#5609)Shougo2016-11-15
| | | | | | | | | | | | | | Problem: Order of matches for 'omnifunc' is messed up. (Danny Su) Solution: Do not set compl_curr_match when called from complete_check(). (closes vim/vim#1168) https://github.com/vim/vim/commit/472e85970ee3a80abd824bef510df12e9cfe9e96
* | vim-patch:7.4.1658James McCoy2016-11-14
| | | | | | | | | | | | | | | | Problem: A plugin does not know when VimEnter autocommands were already triggered. Solution: Add the v:vim_did_enter variable. https://github.com/vim/vim/commit/1473551a4457d4920b235eeeb9f279e196ee7225
* | Merge pull request #5527 from brcolow/vim-7.4.1730James McCoy2016-10-31
|\ \ | |/ |/| vim-patch:7.4.[1730,1734,1741,1742,1779,1782]
| * vim-patch:7.4.1782Michael Ennen2016-10-24
| | | | | | | | | | | | | | | | Problem: strcharpart() does not work properly with some multi-byte characters. Solution: Use mb_cptr2len() instead of mb_char2len(). (Hirohito Higashi) https://github.com/vim/vim/commit/fca66003053f8c0da5161d1fe4b75b3a389934b5
| * vim-patch:7.4.1779Michael Ennen2016-10-23
| | | | | | | | | | | | | | Problem: Using negative index in strcharpart(). (Yegappan Lakshmanan) Solution: Assume single byte when using a negative iindex. https://github.com/vim/vim/commit/73dfe917ba6357413aaf98a021c91add5ac6e9bc
| * vim-patch:7.4.1742Michael Ennen2016-10-23
| | | | | | | | | | | | | | Problem: strgetchar() does not work correctly. Solution: use mb_cptr2len(). Add a test. (Naruhiko Nishino) https://github.com/vim/vim/commit/5d18e0eca59ffbba22c7f7c91c9f99d672095728
| * vim-patch:7.4.1730Michael Ennen2016-10-23
| | | | | | | | | | | | | | Problem: It is not easy to get a character out of a string. Solution: Add strgetchar() and strcharpart(). https://github.com/vim/vim/commit/58de0e2dcc1f2d251b74892a06d71a14973f3187
* | CheckHealth: more checksJustin M. Keyes2016-10-25
| |
* | version: Allow has("nvim-x"), has("nvim-x.y")Justin M. Keyes2016-10-25
| |
* | version: has("nvim-1.2.3")Justin M. Keyes2016-10-25
|/ | | | Helped-by: Daniel Hahler <git@thequod.de>
* api: call multiple methods atomically (useful in async contexts)Björn Linse2016-10-22
| | | | remove unused response_id parameter of handle_nvim_... helpers
* events: allow event processing in getchar()Björn Linse2016-10-15
| | | | | | this is consistent with vim, and is necessary for plugins that implement their own input modes using "getchar()" and still want to do async event processing.
* Merge #5257 from jbradaric/vim-7.4.1893Justin M. Keyes2016-10-13
|\ | | | | vim-patch:7.4.{1893,1895}
| * eval: Exit early if argument is invalid.Jurica Bradaric2016-10-07
| |
| * vim-patch:7.4.1895Jurica Bradaric2016-10-07
| | | | | | | | | | | | | | | | Problem: Cannot use a window ID where a window number is expected. Solution: Add LOWEST_WIN_ID, so that the window ID can be used where a number is expected. https://github.com/vim/vim/commit/888ccac8902cee186fbd47e971881f6d9b19c068
| * vim-patch:7.4.1893Jurica Bradaric2016-10-07
| | | | | | | | | | | | | | Problem: Cannot easily get the window ID for a buffer. Solution: Add bufwinid(). https://github.com/vim/vim/commit/b3619a90eae2702553ff9494ecc4c9b20c13c224
* | Merge #5418 from Shougo/vim-7.4.2158Justin M. Keyes2016-10-13
|\ \ | | | | | | vim-patch: 7.4.2158, 2162, 2205
| * | vim-patch:7.4.2205Shougo Matsushita2016-10-01
| | | | | | | | | | | | | | | | | | | | | Problem: 'wildignore' always applies to getcompletion(). Solution: Add an option to use 'wildignore' or not. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/e9d58a6459687a1228b5aa85bd7b31f8f1e528a8
| * | vim-patch:7.4.2162Shougo Matsushita2016-10-01
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Result of getcompletion('', 'sign') depends on previous completion. Solution: Call set_context_in_sign_cmd(). (Dominique Pelle) https://github.com/vim/vim/commit/7522f6982197f83a5c0f6e9af07fb713934f824a
| * | vim-patch:7.4.2158Shougo Matsushita2016-10-01
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Result of getcompletion('', 'cscope') depends on previous completion. (Christian Brabandt) Solution: Call set_context_in_cscope_cmd(). https://github.com/vim/vim/commit/b650b9878e9f0ac6bb1b61230095ad9ab3850a33
* | | eval/term_write(): Skip writes if stream was closed.Justin M. Keyes2016-10-12
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the backing stream for a :terminal was closed (e.g. if the shell exits unexpectedly) there may be pending input on the loop which will be processed before the terminal close event (which is queued on the same loop). terminal_send checks term->closed but this does not reflect the state of the underlying streams. The terminal.c module in fact has no knowledge of the streams (this seems intentional: it is abstracted as TerminalOption.write_cb). The SIGCHLD handler (pty_process_unix.c) is executed immediately, and it triggers a stream teardown so Stream.closed=false (TerminalJobData.in.closed). When the pending writes are handled by eval.c:term_write, wstream_write() aborts because it sees the closed Stream. To avoid that, this commit checks Stream.closed in eval:term_write() before writing to the WStream. (As hinted above, we cannot do this in terminal:terminal_send() because that module cannot inspect the underlying streams.) References #5445 https://github.com/neovim/neovim/pull/5445#issuecomment-252529766
* | event/multiqueue.c: Rename "queue" to "multiqueue".Justin M. Keyes2016-10-02
|/ | | | | | | | | | | | | | `lib/queue.h` implements a basic queue. `event/queue.c` implements a specialized data structure on top of lib/queue.h; it is not a "normal" queue. Rename the specialized multi-level queue implemented in event/queue.c to "multiqueue", to avoid confusion when reading the code. Before this change one can eventually notice that "macros (uppercase symbols) are for the normal queue, lowercase operations are for the multi-level queue", but that is unnecessary friction for new developers (or existing developers just visiting this part of the codebase).
* vim-patch:7.4.1681Jurica Bradaric2016-09-28
| | | | | | | Problem: Coverity warns for fixed size buffer length (false positive). Solution: Add a check for the name length. https://github.com/vim/vim/commit/ef9d9b94a8803c405884bb6914ed745ede57c596
* vim-patch:7.4.1679Jurica Bradaric2016-09-28
| | | | | | | Problem: Coverity: copying value of v_lock without initializing it. Solution: Init v_lock in rettv_list_alloc() and rettv_dict_alloc(). https://github.com/vim/vim/commit/7d2a5796d39905a972e8f74af5f7b0a62e3de173
* vim-patch:7.4.1648Jurica Bradaric2016-09-28
| | | | | | | | Problem: Compiler has a problem copying a string into di_key[]. (Yegappan Lakshmanan) Solution: Add dictitem16_T. https://github.com/vim/vim/commit/bee6c0cf86a75faa2aa893f2c9db82fd944a89a5