aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Merge pull request #9307 from jamessan/codecov-thresholdJames McCoy2018-12-03
|\ | | | | codecov: Tolerate a 1% drop in coverage for a PR
| * codecov: Tolerate a 1% drop in coverage for a PRJames McCoy2018-12-02
| |
* | Merge pull request #9300 from bfredl/asyncerrBjörn Linse2018-12-03
|\ \ | |/ |/| rpc: fix invalid responses, turn errors from async calls into notifications
| * RPC: turn errors from async calls into notificationsBjörn Linse2018-12-03
|/ | | | | Previously, nvim sent a response with invalid request id (UINT64_MAX). In functionaltests, catch unexpected error notifications in after_each().
* clipboard: Support custom VimL functions #9304Rui Abreu Ferreira2018-12-03
| | | | | | | | | | | | Up to now g:clipboard["copy"] only supported string values invoked as system commands. This commit enables the use of VimL functions instead. The function signatures are the same as in provider/clipboard.vim. A clipboard provider is expected to store and return a list of lines (i.e. the text) and a register type (as seen in setreg()). cache_enabled is ignored if "copy" is provided by a VimL function.
* Merge #9291 'vim-patch:8.1.{550,551}'Justin M. Keyes2018-12-02
|\
| * fixup: 30 col resize to scroll debugJan Edmund Lazo2018-12-01
| |
| * fixup: 35 col resize to scroll screenJan Edmund Lazo2018-12-01
| |
| * functionaltests: vim-patch:8.1.{550,551} fixJan Edmund Lazo2018-11-30
| |
| * vim-patch:8.1.0551: expression evaluation may repeat an error messageJan Edmund Lazo2018-11-30
| | | | | | | | | | | | | | | | Problem: Expression evaluation may repeat an error message. (Jason Franklin) Solution: Check for the value of did_emsg when giving an error for the :execute command. https://github.com/vim/vim/commit/8ff5af9544a2abc3d344bba017ef96682e098d9d
| * vim-patch:8.1.0550: expression evaluation may repeat an error messageJan Edmund Lazo2018-11-30
| | | | | | | | | | | | | | | | Problem: Expression evaluation may repeat an error message. (Jason Franklin) Solution: Increment did_emsg and check for the value when giving an error for the echo command. https://github.com/vim/vim/commit/76a6345433bc2a600689397fb28165a2e5793720
* | Merge pull request #9303 from jamessan/cmp-0075James McCoy2018-12-01
|\ \ | | | | | | Unset CMAKE_REQUIRED_* after they're done being used
| * | cmake: Update comment on why CMP0059 is still set to OLDJames McCoy2018-12-01
| | |
| * | Unset CMAKE_REQUIRED_* after they're done being usedJames McCoy2018-12-01
|/ / | | | | | | | | | | | | As of CMake 3.12, check_include_files() also link the check executable against the libraries listed in CMAKE_REQUIRED_LIBRARIES. Therefore we should unset the CMAKE_REQUIRED_* variables after each respective use to avoid them unnecessarily bleeding into other checks.
* | clipboard: Prefer xclip (#9302)Justin M. Keyes2018-12-01
| | | | | | | | | | | | | | | | | | | | | | The order was swapped in #4150 to prefer `xsel` but there wasn't a clear explanation. Meanwhile, `xsel` has been neglected upstream. Let's trying preferring `xclip` again, we've had a few reports of problems with `xsel`. closes #7237 ref #5853 ref #7449
* | Merge #9297 from justinmk/confirm-dialogJustin M. Keyes2018-12-01
|\ \
| * | doc: deprecate inputdialog()Justin M. Keyes2018-12-01
| | | | | | | | | | | | | | | input() is functionally equivalent. GUI support for dialogs is implicit and does not depend on choosing inputdialog() vs input().
| * | VimL/confirm(): Show dialog even if :silentJustin M. Keyes2018-12-01
|/ / | | | | | | | | closes #8788 related #9034
* | Merge pull request #9299 from bfredl/ctrlx_cmdBjörn Linse2018-12-01
|\ \ | |/ |/| insert: make <cmd> mapping work in completion (CTRL-X) mode
| * insert: make <cmd> mapping work in completion (CTRL-X) modeBjörn Linse2018-12-01
|/
* vim-patch:8.1.0553: it is not easy to edit a script that was sourced (#9298)Jan Edmund Lazo2018-12-01
| | | | | | Problem: It is not easy to edit a script that was sourced. Solution: Add a count to ":scriptnames", so that ":script 40" edits the script with script ID 40. https://github.com/vim/vim/commit/07dc18ffa4e7ed202f219fe2fd3d6f58246f71f9
* test/macOS: adjust time-sensitive testsJustin M. Keyes2018-11-30
| | | | | | | | | | | | | | | | | | | | From test_timers.vim: Found errors in Test_paused(): First run: function RunTheTest[35]..Test_paused line 20: Expected range 0 - 100, but got 123 Second run: function RunTheTest[35]..Test_paused line 20: Expected range 0 - 100, but got 106 previously: #9220 - Timer tests are less reliable on Travis CI macOS 10.12/10.13. ref #6829 ref e39dade80b02 ref de13113dc16e ref https://github.com/neovim/neovim/pull/9095#issuecomment-429603452 > We don't guarantee that a X ms timer is triggered during Y ms sleep > for any X<Y, though I would expect the load to be really bad for this > to happen with X=10ms, Y=40ms.
* highlight: Fix missing .rgb_sp_color in initializers (#9287)Justin M. Keyes2018-11-30
| | | | | | | terminal_get_line_attributes() had this bug for a long time, though it likely had no effect visible to users. ref #9028 ref 60f845ca55a1
* test: adjust time-sensitive testsJustin M. Keyes2018-11-30
| | | | | | | | | | | | | | | | | | | | | From test_alot.vim: Found errors in Test_lambda_with_timer(): First run: function RunTheTest[35]..Test_lambda_with_timer line 19: Expected True but got 0 Second run: function RunTheTest[35]..Test_lambda_with_timer line 19: Expected True but got 0 previously: #9220 - Timer tests are less reliable on Travis CI macOS 10.12/10.13. ref #6829 ref e39dade80b02 ref de13113dc16e ref https://github.com/neovim/neovim/pull/9095#issuecomment-429603452 > We don't guarantee that a X ms timer is triggered during Y ms sleep > for any X<Y, though I would expect the load to be really bad for this > to happen with X=10ms, Y=40ms. - Call test_garbagecollect_now(), as Vim does.
* Merge pull request #9289 from bfredl/nsclearBjörn Linse2018-11-29
|\ | | | | API: rename nvim_buf_clear_highlight to nvim_buf_clear_namespace
| * API: rename nvim_buf_clear_highlight to nvim_buf_clear_namespaceBjörn Linse2018-11-29
|/ | | | | We want a single function to clear all namespaced buffer objects. This will later include extmarks.
* vim-patch:8.1.0098: segfault when pattern with \z() is very slow (#9283)Justin M. Keyes2018-11-29
| | | | | | | | Problem: Segfault when pattern with \z() is very slow. Solution: Check for NULL regprog. Add "nfa_fail" to test_override() to be able to test this. Fix that 'searchhl' resets called_emsg. https://github.com/vim/vim/commit/bcf9442307075bac40d44328c8bf7ea21857b138 closes #8788
* TUI: set_underline_color: only support colon form #9279Daniel Hahler2018-11-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes https://github.com/neovim/neovim/issues/9270 --- Background info per egmontkob: https://github.com/neovim/neovim/issues/9270#issuecomment-441979176 For undercurl, the newly invented escape sequence is `4:3` strictly with a colon, as with a semicolon it means single underlined and italic. For colored underline, the newly invented escape sequence `58:...` is meant to follow the pattern of `38` and `48`. [ITU T.416](https://www.itu.int/rec/T-REC-T.416-199303-I/en) § 13.1.8 clearly specifies the colon only as the separator (and the well-known ECMA-48 § 8.3.117 just points to this standard). Using semicolon instead was/is a frequent misinterpretation of this standard, and is commonly used in the wild – for 38 and 48. More and more emulators are catching up and beginning to support colon, in addition to semicolon. Semicolon is pretty fragile; in case an emulator doesn't recognize a sequence (let's say doesn't recognize the new extension of `58`), subsequent numbers are interpreted as other attributes. E.g. if 256-color mode is chosen then the next numeric parameter is `5` which turns on blinking. So, luckily, the standard is the technically better solution, the frequent practice of using semicolons is technically the worse. Therefore the direction we should be going is clear. I believe it's a fair requirement for anyone adopting colored underline to support colons too, and it's a reasonable move from applications to slightly push the world forward, force developers to catch up with the recent changes, that is: 1) recognize and at least ignore colon-delimited parameters even if they aren't supported, 2) recognize and support colon wherever they support the nonstandard semicolon instead. Should you come across any terminal emulator that supports 58 with semicolons but not with colons, I think the cleanest you can do is report a bug against them and ignore the problem; they should fix it. It's yet another common misunderstanding that the truecolor syntax is `38`/`48`/`58` followed by `:2:rrr:ggg:bbb`. The wording of T.416 is terrible, but if you read carefully, there's another parameter of color-space-id preceding the three color channels. Assuming you don't care about color-space-id, the syntax is `38`/`48`/`58` followed by `:2::rrr:ggg:bbb` and of course the trailing `m`. This is only for true-color, the 256-color format doesn't have such a parameter, it's `38`/`48`/`58` followed by `:5:index` and the final `m`.
* Merge #9221 from justinmk/docJustin M. Keyes2018-11-28
|\
| * scripts/gen_help_html.pyJustin M. Keyes2018-11-28
| | | | | | | | | | Adapted from https://github.com/c4rlo/vimhelp/ License: MIT
| * lint: src/.clang-formatJustin M. Keyes2018-11-28
| | | | | | | | | | | | | | | | Move to top level so that clang-format -style=file can find it regardless of current directory.
| * matchit.vim: s:MultiMatch(): return DictJustin M. Keyes2018-11-28
| |
| * docJustin M. Keyes2018-11-28
| | | | | | | | | | | | | | | | | | | | - develop.txt is for design/guidelines; architecture/concepts should live elsewhere (currently src/nvim/README.md) - move dev-jargon to intro.txt - replace https://neovim.io/community (deprecated) with https://neovim.io/#chat - <Cmd> avoids CmdlineEnter/Leave https://github.com/vim/vim/issues/2889
* | diff/highlight: Fix GUI highlight for low-priority CursorLine (#9281)Justin M. Keyes2018-11-28
|/ | | | ref #9028 ref 0653ed63a508
* Merge pull request #9278 from liushapku/masterJames McCoy2018-11-26
|\ | | | | fix wrong winnr in getwininfo (issue: #9277)
| * fix wrong winnr in getwininfoSha Liu2018-11-27
|/
* Merge #9028 'diff/highlight: low-priority CursorLine'Justin M. Keyes2018-11-27
|\
| * preserve_exit: Ignore SIGHUPJustin M. Keyes2018-11-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | closes #9274 ref #9028 If stdin closed then read_error_exit calls preserve_exit. Handling SIGHUP during preserve_exit would cause a premature teardown, and conflicts with e.g. ui_bridge_stop which waits for TUI to teardown. Vim ignores SIGHUP in its prepare_to_exit and getout_preserve_modified routines: /* Ignore SIGHUP, because a dropped connection causes a read error, which * makes Vim exit and then handling SIGHUP causes various reentrance * problems. */ signal(SIGHUP, SIG_IGN);
| * diff/highlight: Show underline for low-priority CursorLineJustin M. Keyes2018-11-27
| |
| * diff/highlight: do not overlay low-priority CursorLineJustin M. Keyes2018-11-27
| | | | | | | | ref #6380
| * refactor: Rename get_term_attr_entryJustin M. Keyes2018-11-27
|/ | | | | Rename get_term_attr_entry to hl_get_term_attr, similar to hl_get_syn_attr, hl_get_ui_attr.
* version.c: update [ci skip] (#9171)Marvim the Paranoid Android2018-11-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vim-patch:8.0.0350: not enough test coverage for Perl vim-patch:8.0.1135: W_WINCOL() is always the same vim-patch:8.0.1280: Python None cannot be converted to a Vim type vim-patch:8.0.1308: the "Reading from stdin" message may be undesired vim-patch:8.0.1338: USE_IM_CONTROL is confusing and incomplete vim-patch:8.0.1343: MS-Windows: does not show colored emojis vim-patch:8.0.1350: cannot build with +eval and -multi_byte vim-patch:8.0.1829: MS-Windows: script for vimdiff can't handle ! chars vim-patch:8.0.1849: compiler warning for unused arguments, missing prototype vim-patch:8.1.0001: the netrw plugin does not work vim-patch:8.1.0006: syn_id2cterm_bg() may be undefined vim-patch:8.1.0012: misplaced #endif vim-patch:8.1.0021: clang warns for undefined behavior vim-patch:8.1.0041: attribute "width" missing from python window attribute list vim-patch:8.1.0051: MS-Windows: missing #endif vim-patch:8.1.0063: Mac: NSStringPboardType is deprecated vim-patch:8.1.0075: no Vim logo in README file vim-patch:8.1.0077: header of README file is not nice vim-patch:8.1.0079: superfluous space in messages vim-patch:8.1.0102: cannot build without syntax highlighting vim-patch:8.1.0104: can't build without the +eval feature vim-patch:8.1.0109: new po makefile missing from distribution vim-patch:8.1.0117: URL in install program still points to SourceForge vim-patch:8.1.0122: translators don't always understand the maintainer message vim-patch:8.1.0123: MS-Windows: colors are wrong after setting 'notgc' vim-patch:8.1.0124: has('vcon') returns true even for non-win32 terminal vim-patch:8.1.0127: build failure when disabling the session feature vim-patch:8.1.0128: building with MinGW does not work out-of-the-box vim-patch:8.1.0129: still some xterm-like terminals get a stray "p" vim-patch:8.1.0137: CI does not run with TCL vim-patch:8.1.0142: xterm and vt320 builtin termcap missing keypad keys vim-patch:8.1.0147: compiler warning when building with Python 3.7 vim-patch:8.1.0148: memory leak when using :tcl expr command vim-patch:8.1.0150: insufficient test coverage for Tcl vim-patch:8.1.0152: cannot easily run individual tests on MS-Windows vim-patch:8.1.0153: build with SHADOWDIR fails vim-patch:8.1.0155: evim.man missing from the distribution vim-patch:8.1.0157: old iTerm2 is not recognized, resulting in stray output vim-patch:8.1.0160: no Danish manual translations vim-patch:8.1.0162: Danish and German man pages are not installed vim-patch:8.1.0163: insufficient testing for Tcl vim-patch:8.1.0173: compiler warning on MS-Windows vim-patch:8.1.0176: overlapping string argument for strcpy() vim-patch:8.1.0178: warning for passing pointer to non-pointer argument vim-patch:8.1.0179: redundant condition for boundary check vim-patch:8.1.0180: static analysis errors in Lua interface vim-patch:8.1.0183: Lua API changed, breaking the build vim-patch:8.1.0185: running tests writes lua.vim even though it is not used vim-patch:8.1.0190: Perl refcounts are wrong vim-patch:8.1.0191: Perl test fails in 24 line terminal vim-patch:8.1.0197: Windows GUI: title for search/replace is wrong vim-patch:8.1.0201: newer Python uses "importlib" instead of "imp" vim-patch:8.1.0202: :version always shows +packages vim-patch:8.1.0203: building with Perl 5.28 fails on Windows vim-patch:8.1.0207: need many menu translation files to cover regions vim-patch:8.1.0209: stderr output from Ruby messes up display vim-patch:8.1.0215: no error if configure --with-x cannot configure X vim-patch:8.1.0217: compiler warning for variable set but not used vim-patch:8.1.0222: errors are reported for "make install" vim-patch:8.1.0232: Ruby error does not include backtrace vim-patch:8.1.0234: incorrect reference counting in Perl interface vim-patch:8.1.0236: Ruby build fails when ruby_intern is missing vim-patch:8.1.0237: Ruby on Cygwin doesn't always work vim-patch:8.1.0239: now Ruby build fails on other systems vim-patch:8.1.0246: build failure without the +eval feature vim-patch:8.1.0247: Python: error message for failing import is incorrect vim-patch:8.1.0249: GTK: when screen DPI changes Vim does not handle it vim-patch:8.1.0250: MS-Windows using VTP: windows size change incorrect vim-patch:8.1.0254: cannot build on MS-Windows; unused macro HAVE_HANDLE_DROP vim-patch:8.1.0260: no LGTM logo in README file vim-patch:8.1.0287: MAX is not defined everywhere vim-patch:8.1.0292: MS-Windows: the text "self-installing" confuses some users vim-patch:8.1.0301: GTK: input method popup displayed on wrong screen. vim-patch:8.1.0305: missing support for Lua 5.4 32 bits on Unix vim-patch:8.1.0319: bzero() function prototype doesn't work for Android vim-patch:8.1.0332: get Gdk-Critical error on first balloon show vim-patch:8.1.0346: building with Aap is outdated and unused vim-patch:8.1.0348: on Travis the slowest build is run last vim-patch:8.1.0357: instructions for tests are outdated vim-patch:8.1.0368: GTK code has too many #ifdefs and GTK 2.10 building fails vim-patch:8.1.0379: build dependencies are incomplete vim-patch:8.1.0380: "make proto" doesn't work well vim-patch:8.1.0383: missing source file rename vim-patch:8.1.0385: Coveralls badge doesn't update vim-patch:8.1.0386: cannot test with non-default option value vim-patch:8.1.0388: Coverity complains about possible NULL pointer use vim-patch:8.1.0390: scrollbars are not tested vim-patch:8.1.0391: building in a shadow directory fails vim-patch:8.1.0403: header file missing from distribution vim-patch:8.1.0405: too many #ifdefs for GTK vim-patch:8.1.0408: MSVC: cannot use the "x64" native compiler option vim-patch:8.1.0411: renamed file missing from distribution vim-patch:8.1.0412: cannot build with GTK 2.4 vim-patch:8.1.0413: test output is duplicated or missing vim-patch:8.1.0415: not actually using 16 colors with vtp vim-patch:8.1.0418: MS-Windows: cannot separate Lua include and library dirs vim-patch:8.1.0419: Cygwin: running cproto fails with -O2 vim-patch:8.1.0420: generating vim.lib when using ActivePerl 5.20.3 or later vim-patch:8.1.0421: MS-Windows: Ruby path is wrong for Ruby 1.9 and later vim-patch:8.1.0422: cannot create map file with MinGW vim-patch:8.1.0427: MS-Windows GUI: using invalid encoded file name vim-patch:8.1.0441: build failure without command line history vim-patch:8.1.0467: cannot build with Mac OS X 10.5 vim-patch:8.1.0472: dosinst command has a few flaws vim-patch:8.1.0474: directory where if_perl.c is written is inconsistent vim-patch:8.1.0477: tiny build fails vim-patch:8.1.0478: cannot build with perl using MinGW vim-patch:8.1.0480: MinGW build file uses different -I flags than MVC vim-patch:8.1.0482: MinGW "make clean" deletes all .exe files vim-patch:8.1.0483: MinGW does not build tee.exe vim-patch:8.1.0490: MS-Windows: doesn't handle missing glibwinpthread-1.dll vim-patch:8.1.0492: "Edit with existing Vim" list can get long vim-patch:8.1.0500: cleaning up in src/tee may not always work vim-patch:8.1.0521: cannot build with +eval but without +quickfix vim-patch:8.1.0534: MS-Windows installer uses different $HOME than Vim vim-patch:8.1.0541: help message in dosinst.c is outdated vim-patch:8.1.0485: term_start() does not check if directory is accessible #9204
* API: Implement nvim_win_set_buf() #9100Justin M. Keyes2018-11-25
| | | | closes #9100
* CI/travis: Remove vestigial sudo:trueJustin M. Keyes2018-11-25
| | | | | Travis now defaults to sudo:true, and sudo:false is deprecated. ref #9258 3a9fd4327a0c
* Merge #9258 'CI/travis: switch to Ubuntu 16.04'Justin M. Keyes2018-11-25
|\
| * Downgrade to clang-4.0 to avoid false-positive warnings from clangJames McCoy2018-11-24
| | | | | | | | | | | | | | | | | | | | | | | | | | * -Wtautological-compare error: self-comparison always evaluates to true [-Werror,-Wtautological-compare] for (win_T *wp = ((curtab) == curtab) ? firstwin : (curtab)->tp_firstwin; wp != ((void*)0); wp = wp->w_next) { * -Wconversion error: implicit conversion loses floating-point precision: 'const float_T' (aka 'const double') to 'float' [-Werror,-Wconversion] do { const float_T flt_ = (tv->vval.v_float); switch ((sizeof (flt_) == sizeof (float) ? __fpclassifyf (flt_) : sizeof (flt_) == sizeof (double) ? __fpclassify (flt_) : __fpclassifyl (flt_))) { case 0: { ga_concat(gap, (char_u *)(char_u *) "str2float('nan')"); break; } case 1: { if (flt_ < 0) { ga_append(gap, '-'); } ga_concat(gap, (char_u *)(char_u *) "str2float('inf')"); break; } default: { char numbuf[NUMBUFLEN]; vim_snprintf(numbuf, ((sizeof(numbuf)/sizeof((numbuf)[0])) / ((size_t)(!(sizeof(numbuf) % sizeof((numbuf)[0]))))), "%g", flt_); ga_concat(gap, (char_u *)(char_u *) numbuf); } } } while (0); ~~~~~~~~~~~~~ ^~~~
| * Remove extraneous parens to silence -Wparentheses-equalityJames McCoy2018-11-24
| | | | | | | | | | | | | | In file included from ../src/nvim/eval/encode.c:974: ../src/nvim/eval/typval_encode.c.h:390:40: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality] do { if ((tv->vval.v_special == kSpecialVarTrue)) { msgpack_pack_true(packer); } else { msgpack_pack_false(packer); } } while (0); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
| * xenial: fix clang error messagesMarco Hinz2018-11-24
| | | | | | | | | | | | | | | | | | * Remove FUNC_ATTR_NONNULL_ALL from function without pointer arguments. Otherwise the ASAN build would complain: error: 'nonnull' attribute applied to function with no pointer arguments [-Werror,-Wignored-attributes] static void do_autocmd_focusgained(_Bool gained) __attribute__((nonnull));
| * travis: switch from Ubuntu 14.04 to 16.04Marco Hinz2018-11-24
|/ | | | | | | | | | | | Travis is phasing out its support for containers, so we remove the `sudo: false`, which will be a no-op soon. Reference: https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration Changes for Linux: - Xenial comes with libtool installed already. It only provides "libtoolize", though. For "libtool" we need to install libtool-bin.
* Merge pull request #6920 from bfredl/namespaceBjörn Linse2018-11-24
|\ | | | | make namespaces explicit (intitially for bufhl and virttext)