aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
...
* test: fix isCI() for QuickbuildJustin M. Keyes2019-03-01
|
* test/env: multibyte env var to child processerw72019-02-28
| | | | | | | | Note: the test fails on non-Windows CI (Travis linux, Quickbuild bsd): even on master before the env.c changes in this patch-series. Maybe the unix part of printenv-test.c needs to be revisited. Signed-off-by: Justin M. Keyes <justinkz@gmail.com>
* os/env: use libuv v1.12 getenv/setenv APIJustin M. Keyes2019-02-27
| | | | | | | | | | | - Minimum required libuv is now v1.12 - Because `uv_os_getenv` requires allocating, we must manage a map (`envmap` in `env.c`) to maintain the old behavior of `os_getenv` . - free() map-items after removal. khash.h does not make copies of anything, so even its keys must be memory-managed by the caller. closes #8398 closes #9267
* os_getenv, os_setenv: revert "widechar" implJustin M. Keyes2019-02-26
| | | | | | | | | | It's reported that the Windows widechar variants do automatically convert from the current codepage to UTF16, which is very helpful. So the "widechar" impls are a good direction. But libuv v1.12 does that for us, so the next commit will use that instead. ref #8398 ref #9267
* os_setenv: use _wputenv_s; remove vestigial code #7920Justin M. Keyes2019-02-25
| | | | | _putenv_s variant was left over from 810d31a43001, should have been removed in cd5b1315757e.
* TUI: rework background-color detectionJustin M. Keyes2019-02-22
| | | | | | | | | - Like Vim, use set_option_value() followed by reset_option_was_set(). - Do not use set_string_default(), so the default is predictable. This affects `:set bg&`. - Wait until end-of-startup (VimEnter) to handle the response. The response is racey anyways, so timing is irrelevant. This allows OptionSet to be triggered, unlike during startup.
* Merge #5027 'TUI: detect background color'Justin M. Keyes2019-02-17
|\
| * Merge #5027 'TUI: detect background color'Justin M. Keyes2019-01-17
| |\
| | * Add tests for terminal background detectionJosh Triplett2016-07-24
| | |
* | | Merge #9593 'API: nvim_create_buf: "scratch" param'Justin M. Keyes2019-02-17
|\ \ \
| * | | API: nvim_create_buf: add `scratch` parameterJustin M. Keyes2019-02-17
| | | | | | | | | | | | | | | | | | | | Creating a scratch buffer is a chore/ritual, and would be more useful/common if formally exposed.
* | | | terminal: Fix potential invalid local 'scrollback' (#9605)Justin M. Keyes2019-02-17
|/ / / | | | | | | | | | | | | | | | TermOpen autocmd may set local 'scrollback' to -1, this needs to be adjusted as in on_scrollback_option_changed(). fixes #9588 (OOM, out of memory)
* | | UI: change implementation of hl_rgb2cterm_color()Justin M. Keyes2019-02-12
| | | | | | | | | | | | | | | Replace the implementation cargo-culted from Vim's source with something simpler which "seems to look better" with 'pumblend'.
* | | highlight: handle blending with gui=reverse and guisp attributesBjörn Linse2019-02-11
| | |
* | | ui: implement ext_messagesBjörn Linse2019-02-10
| | | | | | | | | | | | Co-Author: Dongdong Zhou <dzhou121@gmail.com>
* | | api: add nvim_create_buf to create a new empty buffer.Björn Linse2019-02-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Loading existing files into a buffer is non-trivial and requires a window. Creating an unnamed emtpy buffer is trivial and safe though, thus worth a special case. Change nvim_buf_set_option to use aucmd_prepbuf. This is necessary to allow some options to be set on a not yet displayed buffer, such as 'buftype' option. vim-patch:7.4.1858: Add BLN_NEW to enforce buflist_new creating new buffer
* | | UI: implement 'pumblend' option for semi-transparent popupmenuBjörn Linse2019-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Why? - Because we can. - Because the TUI is just another GUI™ - Because it looks kinda nice, and provides useful context like 1 out of 100 times Complies with "don't pay for what you don't use". Some crashes for resizing were unfolded, add tests for those.
* | | UI: always use contrete colors for default_colors_setBjörn Linse2019-02-05
| | | | | | | | | | | | | | | But add an escape hatch needed for external TUI, so it still can use terminal emulator defaults.
* | | Merge #9560 from justinmk/Wmissing-prototypesJustin M. Keyes2019-02-04
|\ \ \
| * | | build: -Wmissing-prototypesJustin M. Keyes2019-02-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | ref #343 Though I don't see a strong benefit, it isn't too much of a burden, and maybe avoids confusion in some cases.
* | | | options: set 'scrollback' to -1 by default #9563Marco Hinz2019-02-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makes the 'scrollback' option more consistent (same default for all buffers) and future-proof. - Default to -1 for all buffers, but treat it as an implementation detail. - Document range of 1 - 100_000. - New terminal buffer by default sets scrollback=10_000 if the global default is -1. - Existing terminal buffer: On entering terminal-mode or on refresh, if the user explicitly did `:set[local] scbk=-1`, the local value goes to 100_000 (max). (This is undocumented on purpose. Users should work with explicit values in the range of 1-100_000.)
* | | | events: add "Signal" event #9564Marco Hinz2019-02-04
|/ / / | | | | | | | | | | | | ..which gets triggered when SIGUSR1 is sent to the nvim process. Closes #9562
* | | Merge pull request #9579 from bfredl/pum_fixBjörn Linse2019-02-03
|\ \ \ | | | | | | | | popupmenu: fix alignment of kind and extra after #9530
| * | | popupmenu: fix alignment of kind and extra after #9530Björn Linse2019-02-03
| | | |
* | | | Merge #9578 'vim-patch:8.0.{1045,1073,1077,1114}'Justin M. Keyes2019-02-03
|\ \ \ \ | |/ / / |/| | |
| * | | vim-patch:8.0.1114: default for 'iminsert' is annoyingJan Edmund Lazo2019-02-03
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Default for 'iminsert' is annoying. Solution: Make the default always zero. (Yasuhiro Matsumoto, closes vim/vim#2071) https://github.com/vim/vim/commit/4cf56bbc85f77846aeb378cfb071677336dfad6d
* | | | Merge pull request #9530 from bfredl/pum_floatBjörn Linse2019-02-02
|\ \ \ \ | |/ / / |/| | | Implement popupmenu as a floating grid internally to reduce flicker
| * | | tests/ui: add test for popupmenu redrawing in various situationsBjörn Linse2019-02-02
| | | | | | | | | | | | | | | | | | | | Many of these are handled by the compositor. Check that it causes no glitches.
* | | | inccommand: auto-disable if folding is slow #9568KillTheMule2019-02-01
| | | | | | | | | | | | | | | | | | | | Fixes #9557
* | | | test: adjust timer_specJustin M. Keyes2019-01-31
| | | |
* | | | test: improve reliability of ":terminal topline" testJustin M. Keyes2019-01-31
|/ / / | | | | | | | | | | | | | | | - Avoid using platform-specific shell, it failed in MINGW_64 env. - tty-test.c echos our input, which is exactly what we need for this test. - Test fails correctly if 894f6bee54e8 is reverted.
* | | :terminal : set topline based on window height #8325Andrew Pyatkov2019-01-29
| | | | | | | | | | | | | | | closes #8324 closes #8556
* | | Merge #9539 "options: make 'listchars' and 'fillchars' local to window"Marco Hinz2019-01-28
|\ \ \
| * | | tests: 'fcs' and 'lcs' are local to the windowMarco Hinz2019-01-26
| | | |
| * | | tests: fix mouse tests that use lcs=eol:$Marco Hinz2019-01-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the mouse tests set 'listchars', but not 'list'. Funnily enough, the space, where the `$` would normally appear, would still use new highlight group. Set 'list' for good and fix the tests accordingly.
* | | | terminal: handle size when switching buffers in windowBjörn Linse2019-01-27
| | | |
* | | | window/ui: reorganize size variables, fix terminal window size with multigrid.Björn Linse2019-01-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | wp->w_height_inner now contains the "inner" size, regardless if the window has been drawn yet or not. It should be used instead of wp->w_grid.Rows, for stuff that is not directly related to accessing the allocated grid memory, such like cursor movement and terminal size
* | | | menu_get(): fix query behaviorJustin M. Keyes2019-01-27
| | | | | | | | | | | | | | | | | | | | | | | | - Return the menu properties, not only its children. - If the {path} param is given, return only the first node. The "next" nodes in the linked-list are irrelevant.
* | | | menu_get(): Do not include empty itemsJustin M. Keyes2019-01-27
| | | | | | | | | | | | | | | | | | | | Caused by a typo: `dict` instead of `dic`. Renamed variable to `d` to make it less similar.
* | | | fix ":menu Item.SubItem"Justin M. Keyes2019-01-27
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | :menu should print sub-menu contents. E.g. this should print the "File.Save" submenu: nvim -u NORC :source $VIMRUNTIME/menu.vim :menu File.Save Regressed in dc685387a3d6 Blocks #8173 menu_get() also was missing some results for some cases.
* | | tests/lua: test for multiline error messages in luaBjörn Linse2019-01-23
| | |
* | | ui: multigrid mouse supportBjörn Linse2019-01-20
| | |
* | | Merge #9292 from mhinz/xcode10Justin M. Keyes2019-01-17
|\ \ \
| * | | tests: load-adjust timer tests (functionaltest)Marco Hinz2019-01-17
| |/ /
* / / test: Lua 5.2/5.3 compatMatěj Cepl2019-01-17
|/ / | | | | | | | | close #9515 ref #9280
* | screen: don't unconditionally clear messages on window scrollBjörn Linse2019-01-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In vim, scrolling a window might mess up the cmdline. To keep it simple, cmdline was always cleared for any window scroll. In nvim, where safe scrolling is implemented in the TUI layer, this problem doesn't exist. Clearing the message on scrolling, when we not do it e.g when switching tabs is a bit weird, as the former is a much smaller context change. A vim patch introduced the possibility to avoid the cmdlline clear for redraws caused by async events. This case will now trivially be covered, as the redraw is always avoided. vim-patch:8.0.0592: if a job writes to a buffer screen is not updated
* | :recover : Fix crash on non-existent *.swp #9504raffitz2019-01-15
| | | | | | | | | | | | | | Reverts d2944e6a298e. mf_open() _can_ fail if the file does not exist. closes #9503 closes #9504
* | lua: expose full interface of vim.inspect and add testBjörn Linse2019-01-14
| | | | | | | | | | | | Implement lazy loading for vim.submodule, this would be over-engineering for inspect only, but we expect to use this solution also for more and larger modules.
* | Merge #9463 'Lua stdlib'Justin M. Keyes2019-01-14
|\ \
| * | lua/stdlib: Load runtime modules on-demandJustin M. Keyes2019-01-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of eager-loading during plugin/* sourcing, define runtime modules such as `vim.inspect` as lazy builtins. Otherwise non-builtin Lua modules such as `vim.inspect` would not be available during startup (init.vim, `-c`, `--cmd`, …). ref #6580 ref #8677