aboutsummaryrefslogtreecommitdiff
path: root/test/functional
Commit message (Collapse)AuthorAge
...
* | window: don't crash when closing two floats in a rowBjörn Linse2019-03-23
| | | | | | | | | | prevwin can be set to the current window. Then we can't jump to it after closing a float.
* | help: ignore snapshotted window if invalid (#9774)Marco Hinz2019-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nvim doesn't expect a window-changing command on an created-window event. autocmd WinNew * wincmd p help help - A snapshot for window 1000 is created. - The window is split and the cursor changes to the new window 1001. - The autocmd kicks in and switches back to 1000. - The help buffer is opened. - On closing the help window 1000, it tries to go back to the snapshotted window which is... 1000. - wp1000->w_buffer == NULL - w_buffer is used by check_cursor() - 🧨 -> 💥 Fixes https://github.com/neovim/neovim/issues/9773
* | api: ignore floating windows for laststatus=1 (#9771)Marco Hinz2019-03-22
| | | | | | | | | | ONE_WINDOW considers all windows whereas one_window() ignores floating windows. Fixes https://github.com/neovim/neovim/issues/9768
* | :mksession : restore tab-local working directories #9754Chris LaRose2019-03-21
| |
* | vim-patch:8.1.{0849,1001}: 'cursorline' highlight #9757Justin M. Keyes2019-03-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Lua test correctly fails when 8.1.0849 is reverted. - 8.1.1001 bug does not manifest in Neovim. vim-patch:8.1.0849: cursorline highlight is not always updated Problem: Cursorline highlight is not always updated. Solution: Set w_last_cursorline when redrawing. Fix resetting cursor flags when using the popup menu. https://github.com/vim/vim/commit/c07ff5c60ad35982e9cdaa9dd72d3d1669935e87 vim-patch:8.1.1001: Visual area not correct when using 'cursorline' Problem: Visual area not correct when using 'cursorline'. Solution: Update w_last_cursorline also in Visual mode. (Hirohito Higashi, closes vim/vim#4086) https://github.com/vim/vim/commit/8156ed37558231a8167a1a61a147713d84c9af59
* | test: example_spec.luaJustin M. Keyes2019-03-19
| |
* | Merge pull request #9726 from mhinz/nvim_win_get_configMarco Hinz2019-03-17
|\ \ | | | | | | Closes #9723
| * | api: add tests for new code pathsMarco Hinz2019-03-16
| | |
| * | api: numerous small fixesMarco Hinz2019-03-16
| | |
| * | api: add width/height to FloatConfigMarco Hinz2019-03-16
| | |
| * | api: nvim_win_config() -> nvim_win_set_config()Marco Hinz2019-03-16
| | |
* | | aucmd_prepbuf: also restore `prevwin` #9741Justin M. Keyes2019-03-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bisected to f5d5da391715 Other test steps: nvim -u NORC :terminal tree / " Produces lots of output :edit somefile.txt :vsplit :vsplit <c-w>l <c-w>l <c-w>h <c-w>p
* | | Merge pull request #9607 from bfredl/wildpumBjörn Linse2019-03-16
|\ \ \ | | | | | | | | UI: deprecate redundant ext_wildmenu events and allow TUI popupmenu for cmdline
| * | | Allow using internal popupmenu or ext_popupmenu for wildmenuBjörn Linse2019-03-16
| |/ / | | | | | | | | | | | | Deprecate ext_wildmenu. ext_popupmenu already contains more state (anchor position), and will allow further expansion (info about items).
* | | Merge #9686 'win/Lua: monkey-patch os.getenv()'Justin M. Keyes2019-03-16
|\ \ \ | |/ / |/| | | | | fixes #9681
| * | Fix os.getenv of lua on Windowserw72019-03-07
| | | | | | | | | | | | | | | Change to use os_getenv instead of getenv because environment variable set by uv_os_setenv can not be get with getenv.
| * | Fix environment variable on Windowserw72019-03-06
| | | | | | | | | | | | | | | | | | | | | Since uv_os_setenv uses SetEnvironmentVariableW, _wenviron is no updated. As a result, inconsistency occurs in completion of environment variable names. Change to use GetEnvironmentStaringsW instead of _wenviron to solve it.
* | | Merge pull request #9616 from chemzqm/completechangeBjörn Linse2019-03-16
|\ \ \ | | | | | | | | add MenuPopupChanged autocmd
| * | | autocmd: add MenuPopupChanged autocmdchemzqm2019-03-15
| | | | | | | | | | | | | | | | | | | | | | | | Update src/nvim/auevents.lua Co-Authored-By: chemzqm <chemzqm@gmail.com>
* | | | test: simplify TUI bg-detection testJustin M. Keyes2019-03-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Previous approach skipped the test if the expected value matched the default value ("dark"). New approach always checks, but uses retry() to ignore potentially wrong 'background' before the terminal response is handled.
* | | | Merge #9728 from justinmk/autocmd-onceJustin M. Keyes2019-03-15
|\ \ \ \
| * | | | autocmd: do not show empty section after ++once handlers expireJustin M. Keyes2019-03-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: If autocmd pattern only contained `++once` handlers, and all of them completed, then there would be an empty group displayed by `:autocmd Foo`. Solution: Delete the pattern if all of its commands were deleted.
| * | | | autocmd: rename: "++nested", "++once"Justin M. Keyes2019-03-14
| | | | | | | | | | | | | | | | | | | | | | | | | Based on feedback from upstream: https://github.com/vim/vim/pull/4100
* | | | | compositor: fix rendering issues with floats opened after popupmenuBjörn Linse2019-03-14
|/ / / /
* | | | dictwatcheradd(): support b:changedtick #9693demiurg3372019-03-14
| | | | | | | | | | | | | | | | | | | | fixes #6635 closes #9693
* | | | TextYankPost: add v:event["inclusive"] #9717Justin M. Keyes2019-03-13
| | | |
* | | | test/CI: skip "throttles output" test on Travis macOS #9721Justin M. Keyes2019-03-12
| | | | | | | | | | | | | | | | | | | | Travis macOS is not fast enough to run this test reliably. The test depends on the system producing output faster than the Nvim TUI can handle it.
* | | | floats: add NormalFloat highlight and 'nonumber' defaultBjörn Linse2019-03-12
| | | |
* | | | autocmd: rename "once" => "-once" #9713Justin M. Keyes2019-03-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Rename "nested" to "-nested", but continue to support "nested" for backwards-compatibility. - Allow any order: "-once -nested" or "-nested -once". ref https://github.com/neovim/neovim/pull/9706#issuecomment-471295747
* | | | TUI/background detection: hook into VimEnter eventJustin M. Keyes2019-03-11
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | If terminal response is received during startup, set 'background' from a nested "one-shot" (once) VimEnter autocmd. The previous not-so-clever "self-rescheduling" approach could cause a long delay at startup (event-loop does not make forward progress). fixes #9675 ref #9509
* | | autocmd: introduce "once" featureJustin M. Keyes2019-03-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new feature to :autocmd which sets the handler to be executed at most one times. Before: augroup FooGroup autocmd! autocmd FileType foo call Foo() | autocmd! FooGroup * <buffer> augroup END After: autocmd FileType foo once call Foo()
* | | vim-patch:8.1.0994: fix relative cursor position #9676Justin M. Keyes2019-03-09
| | | | | | | | | | | | | | | | | | Problem: Relative cursor position is not calculated correctly. Solution: Always set topline, also when window is one line only. (Robert Webb) Add more info to getwininfo() for testing. https://github.com/vim/vim/commit/8fcb60f961bdd134599fb016c6537fd496e800f5
* | | floating-window: fix crash setting cmdheight #9685erw72019-03-09
| |/ |/| | | fixes #9680
* | buffer: use aucmd_prepbuf() instead of switch_to_win_for_buf()Björn Linse2019-03-05
|/
* edit.c: Disable indent during completionlePerdu2019-03-03
| | | | closes #8345
* Merge pull request #9667 from bfredl/wincloseBjörn Linse2019-03-03
|\ | | | | api: add nvim_win_close() to close window by id
| * api: add nvim_win_close() to close window by idBjörn Linse2019-03-03
| |
* | test: multibyte env var names #9655Justin M. Keyes2019-03-03
|/
* floats: implement floating windowsBjörn Linse2019-03-02
| | | | Co-Author: Dongdong Zhou <dzhou121@gmail.com>
* API/buffer-updates: always detach on buf-reload #9643KillTheMule2019-03-01
| | | | | | Independently of the 'undoreload' option and the length of the file. closes #9642 closes #9643
* 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_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)