aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
| | | * os_getenvname_at_index: Handle Windows env vars whose name starts with =James McCoy2019-12-11
| | | |
| | | * Add os_getfullenv_size/os_copyfullenvJames McCoy2019-12-11
| | | |
| | | * jobstart now supports env/clear_envMatthieu Coudron2019-12-11
| | | | | | | | | | | | | | | | to modify the environment of the launched job.
| | * | version.c: update [ci skip] #11415Marvim the Paranoid Android2019-12-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vim-patch:8.1.0121: crash when using ballooneval related to 'vartabstop' vim-patch:8.1.0132: lua tests are old style vim-patch:8.1.0134: Lua interface does not support funcref vim-patch:8.1.0758: font number is always one instead of the actual vim-patch:8.1.0808: MS-Windows: build error with GUI vim-patch:8.1.1767: FEAT_SESSION defined separately vim-patch:8.1.1958: old style comments taking up space vim-patch:8.1.2327: cannot build with Hangul input vim-patch:8.1.2328: a few hangul input pieces remain vim-patch:8.1.2352: CI doesn't cover FreeBSD vim-patch:8.1.2354: Cirrus CI runs on another repository vim-patch:8.1.2359: cannot build without FEAT_FLOAT vim-patch:8.1.2370: build problems on VMS vim-patch:8.1.2372: VMS: failing realloc leaks memory vim-patch:8.1.2374: unused parts of libvterm are included vim-patch:8.1.2376: preprocessor indents are incorrect vim-patch:8.1.2383: using old C style comments vim-patch:8.1.2404: channel test fails under valgrind vim-patch:8.1.2407: proto files, dependencies and build instructions outdated vim-patch:8.1.2409: creating the distribution doesn't work as documented vim-patch:8.1.2410: MS-Windows: test_iminsert fails without IME support vim-patch:8.1.2413: cannot update ex_cmdidxs.h on MS-Windows vim-patch:8.1.2414: MS-Windows: properties dialog box shows wrong character vim-patch:8.1.2417: MinGW/Cygwin build does not clean up all files vim-patch:8.1.2423: MS-Windows properties shows version as "8, 1, 0"
| | * | PVS/V1049: fix numerous "DEFINE_FUNC_ATTRIBUTES" warnings #11544Justin M. Keyes2019-12-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PVS erroneously flags our DEFINE_FUNC_ATTRIBUTES guard: V1049 The 'DEFINE_FUNC_ATTRIBUTES' include guard is already defined in the 'lang.h.generated.h' header. The 'profile.h.generated.h' header will be excluded from compilation. To satisfy PVS, just remove the `#ifndef` check. It's not needed anyway: C allows to redundantly #define a macro. https://gcc.gnu.org/onlinedocs/cpp/Undefining-and-Redefining-Macros.html > if an identifier which is currently a macro is redefined, then the new > definition must be effectively the same as the old one > ... > If a macro is redefined with a definition that is not effectively the > same as the old one, the preprocessor issues a warning and changes the > macro to use the new definition. If the new definition is effectively > the same, the redefinition is silently ignored. This allows, for > instance, two different headers to define a common macro. The > preprocessor will only complain if the definitions do not match.
| | * | jumplist: browser-style (or 'tagstack') navigation #11530butwerenotthereyet2019-12-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Traditionally, when navigating to a specific location from the middle of the jumplist results in shifting the current location to the bottom of the list and adding the new location after it. This behavior is not desireable to all users--see, for example https://vi.stackexchange.com/questions/18344/how-to-change-jumplist-behavior. Here, another jumplist behavior is introduced. When jumpoptions (a new option set added here) includes stack, the jumplist behaves like the tagstack or like history in a web browser. That is, when navigating to a location from the middle of the jumplist 2 first 1 second 0 third <-- current location 1 fourth 2 fifth to a new location the locations after the current location in the jump list are discarded 2 first 1 second 0 third <-- current location The result is that when moving forward from that location, the new location will be appended to the jumplist: 3 first 2 second 1 third 0 new If the new location is the same new == second as some previous (but not immediately prior) entry in the jumplist, 2 first 1 second 0 third <-- current location 1 fourth 2 fifth both occurrences preserved 3 first 2 second 1 third 0 second (new) when moving forward from that location. It would be desireable to go farther and, when the new location is the same as the location that is currently next in the jumplist, new == fourth make the result of navigating to the new location by jumping (e.g. 50gg) be the same as moving forward in the jumplist 2 first 1 second 0 third 1 new <-- current location 2 fifth and simply increment the jumplist index. That change is NOT part of this patch because it would require passing the new cursor location to the function (setpcmark) from all of its callees. That in turn would require those callees to know *before* calling what the new cursor location is, which do they do not currently.
| | * | vim-patch:8.1.2402: typos and other small thingsJan Edmund Lazo2019-12-07
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Typos and other small things. Solution: Small fixes. https://github.com/vim/vim/commit/f48ee3c28488f7c361732316f905ac420b3d8087
| | * | Fix access on vim.wo (#11517)Ashkan Kiani2019-12-07
| | | | | | | | | | | | * Add more tests for vim.wo
| | * | vim-patch:8.1.2385: open cmdline window with feedkeys() #11516Jan Edmund Lazo2019-12-04
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Opening cmdline window with feedkeys() does not work. (Yegappan Lakshmanan) Solution: Recognize K_CMDWIN also when ex_normal_busy is set. https://github.com/vim/vim/commit/85db5475982e166ec5bb1c8c9a5c8bf062d49ed1
| | * | defaults: set nostartofline (#11135)Justin M. Keyes2019-12-03
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | Having the cursor change column can be surprising. Force startofline in functional and old tests. Remove the functional breakindent test, as it's a subset of the oldtest one.
| | | * | defaults: set nostartoflineMatthieu Coudron2019-12-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Having the cursor change column can be surprising. Force startofline in functional and old tests. Remove the functional breakindent test, as it's a subset of the oldtest one.
| | * | | vim-patch:8.1.2384: test 48 is old style #11509Jan Edmund Lazo2019-12-03
| | | |/ | | |/| | | | | | | | | | | | | | | | | Problem: Test 48 is old style. Solution: Merge test cases into new style test. (Yegappan Lakshmanan, closes vim/vim#5307) https://github.com/vim/vim/commit/079119babe1cbba3f9234927e62fd75465f2d6b4
| | * | API: rename nvim_execute_lua => nvim_exec_luaJustin M. Keyes2019-12-02
| | | | | | | | | | | | | | | | | | | | | | | | - We already find ourselves renaming nvim_execute_lua in tests and scripts, which suggests "exec" is the verb we actually want. - Add "exec" verb to `:help dev-api`.
| | * | API: deprecate nvim_command_outputJustin M. Keyes2019-12-02
| | | |
| | * | log_init: call log_path_init (#11501)Daniel Hahler2019-12-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has to be done after `init_homedir` for XDG default and `set_init_1` for lookup from env, which could be done earlier likely (to help with https://github.com/neovim/neovim/issues/10937), but this keeps it in sync with Vim. Fixes https://github.com/neovim/neovim/issues/11499.
| | * | testdir/runnvim.sh: create messages file always (#11503)Daniel Hahler2019-12-02
| | | |
| | * | oldtest: support for running by filename (#11473)Daniel Hahler2019-12-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Follow-up to 8969efca8 (Vim patch 8.1.0723) NOTE: This changes the main entrypoint for running single oldtest files to not use/require the ".res" extension anymore. But it is handled for B/C. Adds a phony rule to run oldtest by filename. Not going through "$(MAKE)" avoids GNUmakefile being used then (which I use for WIP things), and it seems like SINGLE_MAKE should be used anyway probably.
| | * | src/nvim/testdir/test_quickfix.vim: align with Vim (#11502)Daniel Hahler2019-12-02
| | | |
| | * | dictwatcher: fix use-after-free #11495erw72019-12-02
| | | | | | | | | | | | | | | | | | | | fixes #11494
| | * | API: rename nvim_source => nvim_execJustin M. Keyes2019-12-01
| | | | | | | | | | | | | | | | | | | | - Eliminate nvim_source_output(): add boolean `output` param to nvim_exec() instead.
| | * | API: nvim_source_outputVikram Pal2019-12-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Similar to nvim_source but will capture the output - Add meaningful VimL tracebacks for nvim_source - Handle got_int - Add error reporting
| | * | API: nvim_source: fix multiline inputJustin M. Keyes2019-12-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - DOCMD_REPEAT is needed to source all lines of input. - Fix ":verbose set {option}?" by handling SID_STR in get_scriptname(). closes #8722
| | * | API: nvim_source: save/restore script context #11159Vikram Pal2019-12-01
| | | | | | | | | | | | | | | | Use a constant for the script id.
| | * | API: nvim_sourceSiddhant Gupta2019-12-01
| | | |
| | * | Add vim.cmd as an alias for nvim_command (#11446)Ashkan Kiani2019-12-01
| | | |
| | * | Return nil instead of NIL for vim.env (#11486)Ashkan Kiani2019-12-01
| | | |
| | * | terminfo_is_bsd_console: fallback to falseDaniel Hahler2019-12-01
| | | | | | | | | | | | | | | | Ref: https://github.com/neovim/neovim/commit/ab7da4c53138768#r36200515
| | * | vim-patch:8.1.2367: registers are not sufficiently tested (#11489)Jan Edmund Lazo2019-12-01
| | | | | | | | | | | | | | | | | | | | Problem: Registers are not sufficiently tested. Solution: Add a few more test cases. (Yegappan Lakshmanan, closes vim/vim#5288) https://github.com/vim/vim/commit/71136db1bfbc67c2e55f8070cdf0a241c643e45b
| | * | vim-patch:8.1.2363: ml_get error when accessing Visual area in 'statusline'Jan Edmund Lazo2019-11-30
| | | | | | | | | | | | | | | | | | | | | | | | Problem: ml_get error when accessing Visual area in 'statusline'. Solution: Disable Visual mode when using another window. (closes vim/vim#5278) https://github.com/vim/vim/commit/dee50a518007b3a59f54b8ad018b6a83993593e7
| | * | vim-patch:8.1.2355: test with "man" fails on FreeBSDJan Edmund Lazo2019-11-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Test with "man" fails on FreeBSD. Solution: Use "-P" instead of "--pager". https://github.com/vim/vim/commit/c7d2a57b3a076f6ecb16f93c0b09280c4b3b4175 Cherry-picked "has('bsd')" from vim-patch:8.1.0846. Cherry-picked test_normal.vim fix from vim-patch:8.1.2358
| | * | floatwin: show error if window is closed immediately #11476Justin M. Keyes2019-11-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Autocmds may close window while it is being entered, then win_set_minimal_style(wp) operates on an invalid pointer. We could silently ignore this instead, but it is unlikely to be intentional, so it is more useful to show an error. fix #11383
| | * | vim-patch:8.1.2315: switchbuf=uselast #11480Daniel Hahler2019-11-29
| | | | | | | | | | | | | | | | | | | | Problem: Not always using the right window when jumping to an error. Solution: Add the "uselast" flag in 'switchbuf'. (closes vim/vim#1652) https://github.com/vim/vim/commit/539aa6b25eaea91dfd1a175cd053c0f259fa2e58
| | * | vim-patch:8.1.2017: cannot execute commands after closing cmdline window #11479Daniel Hahler2019-11-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot execute commands after closing the cmdline window. Solution: Also trigger BufEnter and WinEnter. (closes vim/vim#4762) https://github.com/vim/vim/commit/96e38a86a710fb6daec4550ac1667f019dc3a40e Fixes https://github.com/neovim/neovim/issues/11279.
| | * | win_line: Fix crash with 'rightleft' in :terminal #11460erw72019-11-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes #11438 Backtrace: 0 schar_from_ascii ( p=0x801cc9e112c3 <error: Cannot access memory at address 0x801cc9e112c3>, c=32 ' ') at ../src/nvim/screen.c:5263 1 0x00007f31460eccc5 in win_line (wp=wp@entry=0x7fffc9df6230, lnum=lnum@entry=11, startrow=startrow@entry=10, endrow=41, nochange=false, number_only=number_only@entry=false) at ../src/nvim/screen.c:4025 2 0x00007f31460eed8e in win_update (wp=wp@entry=0x7fffc9df6230) at ../src/nvim/screen.c:1403 3 0x00007f31460f011f in update_screen (type=<optimized out>) at ../src/nvim/screen.c:502 4 0x00007f3146138ef4 in normal_redraw (s=s@entry=0x7fffd0a5f700) at ../src/nvim/normal.c:1247 5 0x00007f314613b159 in normal_check (state=0x7fffd0a5f700) at ../src/nvim/normal.c:1324 6 0x00007f31460accfe in state_enter (s=0x7fffd0a5f700) at ../src/nvim/state.c:28 7 0x00007f3146143099 in normal_enter (cmdwin=<optimized out>, noexmode=<optimized out>) at ../src/nvim/normal.c:463 8 0x00007f314618b541 in main (argc=<optimized out>, argv=<optimized out>) at ../src/nvim/main.c:580
| | * | doc: fix typosBrian Wignall2019-11-27
| | | | | | | | | | | | | | | | close #11459
| | * | vim-patch:8.1.1268: map completion test fails in GUIJan Edmund Lazo2019-11-26
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Map completion test fails in GUI. Solution: Skip the test that fails. https://github.com/vim/vim/commit/510671a055c2d7a329c88bf133ac302139fd3221
| | * | vim-patch:8.1.1254: mapping completion contains dead codeJan Edmund Lazo2019-11-26
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Mapping completion contains dead code. Solution: Remove the code. https://github.com/vim/vim/commit/61df0c7996d9acc94267735abc214cb176e63ede
| | * | vim-patch:8.1.1253: mapping completion test failsJan Edmund Lazo2019-11-26
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Mapping completion test fails. Solution: Fix expected output. https://github.com/vim/vim/commit/92b9e60cb5775ebe8949b4e112feb9f8565441e0
| | * | vim-patch:8.1.1252: not all mapping completion is testedJan Edmund Lazo2019-11-26
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Not all mapping completion is tested. Solution: Add a few more mapping completion tests. https://github.com/vim/vim/commit/1776a28e9c7fd0236927f14e9df807e524b30721
| | * | vim-patch:8.1.2349: :lockvar and :unlockvar cannot be followed by "| endif"Jan Edmund Lazo2019-11-26
| | | | | | | | | | | | | | | | | | | | | | | | Problem: :lockvar and :unlockvar cannot be followed by "| endif". Solution: Check for following commands. (closes vim/vim#5269) https://github.com/vim/vim/commit/cc4423ae13d78367a3d0b5756783523d3b3a1d31
| | * | vim-patch:8.1.2348: :const cannot be followed by "| endif"Jan Edmund Lazo2019-11-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: :const cannot be followed by "| endif". Solution: Check following command for :const. (closes vim/vim#5269) Also fix completion after :const. https://github.com/vim/vim/commit/8f76e6b12b958f2779444a92234bbaf3f49eeb99
| | * | vim-patch:8.1.2345: .cjs files are not recognized as JavascriptJan Edmund Lazo2019-11-26
| | | | | | | | | | | | | | | | | | | | | | | | Problem: .cjs files are not recognized as Javascript. Solution: Add the *.cjs pattern. (closes vim/vim#5268) https://github.com/vim/vim/commit/c1faf3dc3879e8a5e486f31445b5a5753dcbc6a3
| | * | Merge pull request #11445 from bfredl/fcslcsBjörn Linse2019-11-26
| | |\ \ | | | | | | | | | | options: make 'fillchars' and 'listchars' global-local instead of local-only
| | | * | options: make 'fillchars' and 'listchars' global-localBjörn Linse2019-11-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These options were previously global. A global-local window option behaves closer to a global option "per default" (i e with :set), but still supports local behavior via :setl Also this restores back-compat for nvim_set_option("fcs", ...) which are currently broken on 0.4.x but worked in earlier versions
| | * | | Merge pull request #11466 from bfredl/luaoptBjörn Linse2019-11-26
| | |\ \ \ | | | | | | | | | | | | lua: make vim.wo and vim.bo used nested indexing for specified handle
| | | * | | lua: make vim.wo and vim.bo used nested indexing for specified handleBjörn Linse2019-11-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also missing option should be an error. Options are functionality, not arbitrary variable names (as for vim.g)
| | * | | | cmake: enable exporting symbols from static libs againBjörn Linse2019-11-26
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reverts the effect of disabling CMP0065 in ac32426 (#11131) "build: get rid of warnings with `cmake --debug-output`" We need symbols from statically linked libraries to be exported. Otherwise cpath lua modules will not find liblua/libluajit symbols as needed.
| | * | | UI: emit mouse_on/mouse_off on attach #11455Justin M. Keyes2019-11-25
| | | | | | | | | | | | | | | closes #11372
| | * | | [RFC] extmark: fix E315 in nvim_buf_set_extmark (#11449)notomo2019-11-25
| | | | | | | | | | | | | | | | | | | | | | | | | extmark: need to use buf instead of curbuf
| | * | | doc + extmarks tweaks #11421Justin M. Keyes2019-11-25
| | | | | | | | | | | | | | | | | | | | - nvim_buf_get_extmarks: rename "amount" => "limit" - rename `set_extmark_index_from_obj`