aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
| * | | | | eval/decode: Fix memory leak in JSON functionsZyX2017-03-27
| | | | | |
| * | | | | executor/converter: Use readable lua numbers for handlesZyX2017-03-27
| | | | | |
| * | | | | api: Reserve more numbers for internal callsZyX2017-03-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reasoning; currently INTERNAL_CALL is mostly used to determine whether it is needed to deal with NL-used-as-NUL problem. This code is useful for nvim_… API calls done from VimL, but not for API calls done from lua, yet lua needs to supply something as channel_id.
| * | | | | executor/converter: Allow converting self-referencing lua objectsZyX2017-03-27
| | | | | |
| * | | | | functests: Test for error conditionsZyX2017-03-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During testing found the following bugs: 1. msgpack-gen.lua script is completely unprepared for Float values either in return type or in arguments. Specifically: 1. At the time of writing relevant code FLOAT_OBJ did not exist as well as FLOATING_OBJ, but it would be used by msgpack-gen.lua should return type be Float. I added FLOATING_OBJ macros later because did not know that msgpack-gen.lua uses these _OBJ macros, otherwise it would be FLOAT_OBJ. 2. msgpack-gen.lua should use .data.floating in place of .data.float. But it did not expect that .data subattribute may have name different from lowercased type name. 2. vim_replace_termcodes returned its argument as-is if it receives an empty string (as well as _vim_id*() functions did). But if something in returned argument lives in an allocated memory such action will cause double free: once when freeing arguments, then when freeing return value. It did not cause problems yet because msgpack bindings return empty string as {NULL, 0} and nothing was actually allocated. 3. New code in msgpack-gen.lua popped arguments in reversed order, making lua bindings’ signatures be different from API ones.
| * | | | | executor/converter: Make it possible to supply `{}` to Dictionary argZyX2017-03-27
| | | | | |
| * | | | | executor/converter: Make nlua_pop_Object not recursiveZyX2017-03-27
| | | | | |
| * | | | | executor/converter: Fix how maxidx is determinedZyX2017-03-27
| | | | | |
| * | | | | executor/converter: Fix conversion of self-containing containersZyX2017-03-27
| | | | | |
| * | | | | executor: Make sure it works with API valuesZyX2017-03-27
| | | | | |
| * | | | | *: Silence linterZyX2017-03-27
| | | | | |
| * | | | | viml/executor: Directly generate typval_T valuesZyX2017-03-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note: this will *still* crash when using API in cases similar to the one described in first commit. Just it needs different code to reproduce.
| * | | | | eval: Add luaeval functionZyX2017-03-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No tests yet, no documentation update, no :lua* stuff, no vim module. converter.c should also work with typval_T, not Object. Known problem: luaeval("1", {}) results in PANIC: unprotected error in call to Lua API (attempt to index a nil value) Ref #3823
* | | | | | Merge #6597 'winhighlight'Justin M. Keyes2017-05-08
|\ \ \ \ \ \
| * | | | | | options: allow different highlights in windowsBjörn Linse2017-05-08
| | | | | | |
| * | | | | | options: consolidate updates for window string options affected by copy_winoptBjörn Linse2017-05-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | update note at options.c head about window options
* | | | | | | Merge #6595 from justinmk/term-refresh-on-exitJustin M. Keyes2017-05-08
|\ \ \ \ \ \ \
| * | | | | | | Revert "event/process.c: send SIGTERM directly (#6644)"Justin M. Keyes2017-05-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 34c3f03013375817d3d089e685793290eded553a.
| * | | | | | | terminal: refresh before on_exit. #5217Richard Adenling2017-05-08
| | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | References #3030 References https://github.com/radenling/vim-dispatch-neovim/issues/6 The terminal is updated by a timer, but on_exit needs the final state. Before this change, on_exit callback could see a stale terminal buffer. Helped-by: oni-link <knil.ino@gmail.com>
* / | | | | | refactor/single-include (#6687)Carlo Abelli2017-05-08
|/ / / / / /
* | | | | | Merge #6460 from ZyX-I/1476-changesJustin M. Keyes2017-05-08
|\ \ \ \ \ \ | |/ / / / / |/| | | | | Refactor functions which find character in a string
| * | | | | Merge branch 'master' into 1476-changesZyX2017-04-10
| |\ \ \ \ \ | | | |_|/ / | | |/| | |
| * | | | | regexp: Update comment in cstrchr()ZyX2017-04-08
| | | | | |
| * | | | | regexp: Do not use locale-dependent functions in cstrchrZyX2017-04-07
| | | | | |
| * | | | | regexp: Refactor cstrchrZyX2017-04-07
| | | | | | | | | | | | | | | | | | | | | | | | Ref #1476
| * | | | | strings: Remove vim_strbyteZyX2017-04-07
| | | | | | | | | | | | | | | | | | | | | | | | Ref #1476
| * | | | | strings: Replace vim_strchr implementation with a saner oneZyX2017-04-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes dead code (enc_utf8, enc_dbcs and has_mbyte now have hardcoded values), relies on libc implementation being more optimized. Also where previously negative character just would never be found it is an assertion error now. Ref #1476
* | | | | | refactor/single-include (#6688)Carlo Abelli2017-05-05
| | | | | |
* | | | | | event/process.c: send SIGTERM directly (#6644)Daniel Hahler2017-05-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Send SIGTERM to processes directly, instead of waiting for ~1s. - removes TERM_TIMEOUT - changes KILL_TIMEOUT to milliseconds - removes Process.term_sent
* | | | | | tui: Also fix "linux*" terminfo entries. #6673Jonathan de Boyne Pollard2017-05-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The terminfo entry for linux only advertises 8 colours, but nvim tries to make it display 16 colours anyway, resulting in erroneous SGR control sequences for colours 8 and above. The Linux kernel terminal emulator itself has actually understood the 256-colour control sequences since version 4.8 and the 16-colour control sequences since version 4.9. Thus we apply the same terminfo fixup as we apply for *xterm* and *256*, to emit the 16-colour and 256-colour control sequences even if terminfo's setaf and setab do not advertise them.
* | | | | | utf16_to_utf8: Allocate space for converted string and NULJames McCoy2017-05-03
| | | | | | | | | | | | | | | | | | | | | | | | References #6646
* | | | | | 'guicursor': tui: Konsole: blinkon0 should disable blinking.Justin M. Keyes2017-05-03
| | | | | |
* | | | | | test/legacy: Add Test_with_partial_callback to s:flaky. (#6666)Justin M. Keyes2017-05-03
| | | | | |
* | | | | | win: Terminal UI #6315Rui Abreu Ferreira2017-05-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For CI builds unibilium is provided through msys2 packages, and libtermkey is built from source in third-party from equalsraf/libtermkey. In Windows we cannot read terminal input from the stdin file descriptor, instead use libuv's uv_tty API. It should handle key input and encoding. The UI suspend is not implemented for Windows, because the SIGSTP/SIGCONT do not exist in windows. Currently this is a NOOP. Closes #3902 Closes #6640
* | | | | | Use vim_strchr(s, c) when c may be NUL (#6656)James McCoy2017-05-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As part of the refactoring in #5119, some vim_strchr() were changed to strchr(). However, vim_strchr() behaves differently than strchr() when c is NUL, returning NULL instead of a pointer to the NUL. Revert the strchr() calls where it isn't known whether c is NUL, since this causes a semantic change the surrounding code doesn't expect. In the case of #6650, this led to a heap overrun. Closes #6650
* | | | | | coverity/161682: FP: Dereference after null check (#6630)Justin M. Keyes2017-05-01
| | | | | |
* | | | | | doc: bracketed-paste-modeJustin M. Keyes2017-05-01
| | | | | |
* | | | | | Merge pull request #6621 from jamessan/vim-7.4.2231James McCoy2017-04-30
|\ \ \ \ \ \ | | | | | | | | | | | | | | vim-patch:7.4.2231,7.4.2239,7.4.2244,7.4.2245,7.4.2246,7.4.2263,8.0.0150
| * | | | | | lintJames McCoy2017-04-29
| | | | | | |
| * | | | | | vim-patch:8.0.0150James McCoy2017-04-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: When the pattern of :filter does not have a separator then completion of the command fails. Solution: Skip over the pattern. (Ozaki Kiichi, clodes vim/vim#1299) https://github.com/vim/vim/commit/7069bf18e1b1b7bc7640335e07d1022b5acc9048
| * | | | | | vim-patch:7.4.2263James McCoy2017-04-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: :filter does not work for many commands. Can only get matching messages. Solution: Make :filter work for :command, :map, :list, :number and :print. Make ":filter!" show non-matching lines. https://github.com/vim/vim/commit/d29459baa61819e59961804ed258efac5733ec70
| * | | | | | vim-patch:7.4.2246James McCoy2017-04-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Oldfiles test fails. Solution: Include missing changes. https://github.com/vim/vim/commit/d6f2ee32dcfa18c781ef157918b524318a2215a2
| * | | | | | vim-patch:7.4.2245James McCoy2017-04-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Filter test fails. Solution: Include missing changes. https://github.com/vim/vim/commit/77401add71853d7a3da7ccc489f2a1bca58551ec
| * | | | | | vim-patch:7.4.2244James McCoy2017-04-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Adding pattern to ":oldfiles" is not a generic solution. Solution: Add the ":filter /pat/ cmd" command modifier. Only works for some commands right now. https://github.com/vim/vim/commit/7b668e83d0635d082b7ec90d7d2aa30a9d7d8928
| * | | | | | vim-patch:7.4.2239James McCoy2017-04-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Warning for missing declaration of skip_vimgrep_pat(). (John Marriott) Solution: Move it to another file. https://github.com/vim/vim/commit/9baf297c99cc35adb921bee04369499d76438889
| * | | | | | vim-patch:7.4.2231James McCoy2017-04-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: ":oldfiles" output is a very long list. Solution: Add a pattern argument. (Coot, closes vim/vim#575) https://github.com/vim/vim/commit/e11d61a3b1cdedf3144de697a2b38af62c3a78d8
* | | | | | | Merge #6588 from justinmk/guicursorJustin M. Keyes2017-04-30
|\ \ \ \ \ \ \
| * | | | | | | 'guicursor': TMUX_WRAP iTerm seqs. Do color seq before shape seq.Justin M. Keyes2017-04-30
| | | | | | | |
| * | | | | | | 'guicursor': No color/blink by defaultJustin M. Keyes2017-04-30
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | Closes #6577
* / / / / / / api: deprecate obsolete nvim_buf_get_number functionBjörn Linse2017-04-30
|/ / / / / /