aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
...
| * | | | 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
|/
* Merge pull request #6619 from bfredl/floatingBjörn Linse2019-03-02
|\ | | | | Floating windows in TUI and Remote UI
| * floats: implement floating windowsBjörn Linse2019-03-02
| | | | | | | | Co-Author: Dongdong Zhou <dzhou121@gmail.com>
* | search.c: remove dead code #5307Justin M. Keyes2019-03-02
|/ | | has_mbyte is always true.
* 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: 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