aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
| * | vim-patch:8.0.0685: when conversion fails written file may be truncatedckelsel2018-10-12
| | | | | | | | | | | | | | | | | | | | | | | | Problem: When making backups is disabled and conversion with iconv fails the written file is truncated. (Luo Chen) Solution: First try converting the file and write the file only when it did not fail. (partly by Christian Brabandt) https://github.com/vim/vim/commit/e6bf655bc4de1b7f4586e1f5c2fc4978141c3aa3
* | | vim-patch:8.0.1489: there is no easy way to get the global directory (#9109)Jan Edmund Lazo2018-10-12
| | | | | | | | | | | | | | | | | | | | | Problem: There is no easy way to get the global directory, esp. if some windows have a local directory. Solution: Make getcwd(-1) return the global directory. (Andy Massimino, closes vim/vim#2606) https://github.com/vim/vim/commit/5459129af2a832a027a1e7ca2d6177c26647d64f
* | | Merge #8902 'doc'Justin M. Keyes2018-10-12
|\ \ \ | |/ / |/| |
| * | doc: xdg, MAINTAIN.md, channel-id, job controlJustin M. Keyes2018-10-11
| | | | | | | | | | | | - tutor: emphasize K
* | | Merge #9106 from janlazo/vim-8.0.1837Justin M. Keyes2018-10-11
|\ \ \ | | | | | | | | vim-patch:8.0.1837
| * | | lintJan Edmund Lazo2018-10-10
| | | |
| * | | vim-patch:8.0.1837: one character cmdline abbreviation not triggered after '<,'>Jan Edmund Lazo2018-10-10
| |/ / | | | | | | | | | | | | | | | Problem: One character cmdline abbreviation not triggered after '<,'>. Solution: Skip over the special range. (Christian Brabandt, closes vim/vim#2320) https://github.com/vim/vim/commit/5e3423d192bfa502c6704f731fa2ec6821f9a2f0
* / / vim-patch:8.0.1777: cannot cleanup before loading another colorscheme (#9104)Jan Edmund Lazo2018-10-11
|/ / | | | | | | | | Problem: Cannot cleanup before loading another colorscheme. Solution: Add the ColorSchemePre autocommand event. https://github.com/vim/vim/commit/60a68362aa73f4a6cb534688978f9dc2b16e60fe
* | vim-patch:8.1.0468: MS-Windows: filter command with pipe character fails (#9101)Jan Edmund Lazo2018-10-10
| | | | | | | | | | | | | | Problem: MS-Windows: Filter command with pipe character fails. (Johannes Riecken) Solution: Find the pipe character outside of quotes. (Yasuhiro Matsumoto, closes vim/vim#1743, closes vim/vim#3523) https://github.com/vim/vim/commit/0664089eccec1083dd04ef2255856fb34ce62f15
* | lintJan Edmund Lazo2018-10-09
| |
* | vim-patch:8.0.1423: error in return not caught by try/catchJan Edmund Lazo2018-10-09
| | | | | | | | | | | | Problem: Error in return not caught by try/catch. Solution: Call update_force_abort(). (Yasuhiro Matsomoto, closes vim/vim#2483) https://github.com/vim/vim/commit/fabaf753e26df5a89a854673d14c15a1fa6b321a
* | Merge pull request #9079 from bfredl/tui_cursorBjörn Linse2018-10-09
|\ \ | | | | | | TUI cursor fixes: avoid memory errors after resize with invalid cursor position
| * | TUI: delete "first-row" workaround after resizeBjörn Linse2018-10-06
| | | | | | | | | | | | | | | This was caused by cursor position being invalid right after tui_grid_resize, which is now fixed
| * | TUI: always use safe cursor movement after resizeBjörn Linse2018-10-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old code could lead to a memory error in the following situation: 0. The previous cursor position was row 50 since before, on a grid larger than 50 rows. 1. grid_resize changes the grid height to 40, and invalidly assumes the resize moved the physical cursor to row 0 2. Some event used a operation that could move the cursor (such as clear), and then reset the cursor to the "true" position row 50 (pointless after #8221, but I forgot to remove it) 3. raw_line/cheap_to_print is invoked, and tries to inspect the grid at row 50 (memory error) 4. grid_cursor_goto would have been called at this point, and set a valid cursor position 0-39.
* | | vim-patch:8.0.1779: deleting in a block selection causes problems (#9099)Jan Edmund Lazo2018-10-09
| | | | | | | | | | | | | | | | | | Problem: Deleting in a block selection causes problems. Solution: Check the length of the line before adding bd.textcol and bd.textlen. (Christian Brabandt, closes vim/vim#2825) https://github.com/vim/vim/commit/35e802e713382d7e76232ad344af7dcd577e43de
* | | vim-patch:8.1.0466: autocmd test failsJan Edmund Lazo2018-10-08
| | | | | | | | | | | | | | | | | | Problem: Autocmd test fails. Solution: Do call inchar() when flushing typeahead. https://github.com/vim/vim/commit/6a2633b00bb00bcf0d994f08d1c54ace2c221b58
* | | vim-patch:8.1.0463: "simalt ~x" in .vimrc blocks swap file promptJan Edmund Lazo2018-10-08
| | | | | | | | | | | | | | | | | | | | | Problem: "simalt ~x" in .vimrc blocks swap file prompt. Solution: Flush buffers before prompting. (Yasuhiro Matsumoto, closes vim/vim#3518, closes vim/vim#2192) https://github.com/vim/vim/commit/798184cc67036285a24b38c0bf6668d4d1525548
* | | vim-patch:8.1.0459: Test_executable fails when there is a dog in the systemJan Edmund Lazo2018-10-08
| | | | | | | | | | | | | | | | | | Problem: Test_executable fails when there is a dog in the system. Solution: Rename the dog. (Hirohito Higashi) https://github.com/vim/vim/commit/a05a0d325c7615439f4a42f00682b2ebad43c8d9
* | | Merge #9092 from janlazo/vim-8.0.1807Justin M. Keyes2018-10-08
|\ \ \
| * | | oldtests: win: fix executable() assertionsJan Edmund Lazo2018-10-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows has "Read and execute" permission via ACL but nvim and libuv do not support ACL. Windows does not support the executable bit in chmod-style permissions but it is safe to assume that if the file exists and is readable, then it is most likely executable. This means that win.ini and shell32.dll are "executable" because they exist, are readable, and are in PATH. PATHEXT does not affect the executable permission of a file; it exists to run files on the shell while omitting the file extension. Assume that PATHEXT is intended for cmd.exe only because powershell can execute powershell files (ie. *.ps1) without changing PATHEXT or related cmd.exe environment variable. In the future, nvim should check the outputs of 'assoc' and 'ftype', cmd.exe internal commands, or check the registry. Powershell can be used for ACL if C++/C# API is too difficult to use.
| * | | vim-patch:8.1.0453: MS-Windows: executable() is not reliableJan Edmund Lazo2018-10-07
| | | | | | | | | | | | | | | | | | | | | | | | Problem: MS-Windows: executable() is not reliable. Solution: Use $PATHEXT properly. (Yasuhiro Matsumoto, closes vim/vim#3412) https://github.com/vim/vim/commit/8295666dc2c65e42135b91d5c61e2a140d002333
| * | | vim-patch:8.1.0454: resolve() was not tested with a symlink cycleJan Edmund Lazo2018-10-06
| | | | | | | | | | | | | | | | | | | | | | | | Problem: resolve() was not tested with a symlink cycle. Solution: Add a test. (Dominique Pelle, closes vim/vim#3513) https://github.com/vim/vim/commit/261099070940fb64d4633a766ae3510fffe4171d
| * | | vim-patch:8.0.1807: function to set terminal name is too longJan Edmund Lazo2018-10-06
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Function to set terminal name is too long. Solution: Refactor the function. Fix typo in test. https://github.com/vim/vim/commit/69e056915c4145b7b64c60963797692a5b293561
* | | | Merge #9036 'func_attr_printf'Justin M. Keyes2018-10-07
|\ \ \ \ | |/ / / |/| | |
| * | | src/nvim/eval.cMichaHoffmann2018-10-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/nvim/eval/typval.c src/nvim/fileio.c src/nvim/main.c src/nvim/regexp_nfa.c src/nvim/spellfile.c changed some EMSG[..] Macros to emsgf
| * | | fixed lint errorsMichaHoffmann2018-09-24
| | | |
| * | | src/nvim/eval.c: printf errorMichaHoffmann2018-09-24
| | | |
| * | | add func_attr_printf in :MichaHoffmann2018-09-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | log.c message.c strings.c fixed some printf warnings in: src/nvim/undo.c src/nvim/eval.c src/nvim/eval/encode.c src/nvim/eval/typval.c src/nvim/ex_getln.c src/nvim/fileio.c src/nvim/lua/executor.c src/nvim/main.c src/nvim/regexp_nfa.c src/nvim/shada.c src/nvim/spellfile.c src/nvim/tui/terminfo.c src/nvim/garray.h
* | | | clint: add support for --stdin-filenameDaniel Hahler2018-10-05
| | | |
* | | | clint: use fileinput for stdinDaniel Hahler2018-10-05
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes handing of "-" on Python 3: Traceback (most recent call last): File "…/Vcs/neovim/src/clint.py", line 3625, in <module> main() File "…/Vcs/neovim/src/clint.py", line 3618, in main ProcessFile(filename, _cpplint_state.verbose_level) File "…/Vcs/neovim/src/clint.py", line 3464, in ProcessFile 'replace').read().split('\n') File "/usr/lib/python3.7/codecs.py", line 701, in read return self.reader.read(size) File "/usr/lib/python3.7/codecs.py", line 500, in read data = self.bytebuffer + newdata TypeError: can't concat str to bytes
* | | TUI: check libvte version for undercurl support #9088Daniel Hahler2018-10-05
| | | | | | | | | | | | | | | Support was added in https://github.com/GNOME/vte/commit/efaf8f3c. Fixes #9083
* | | vim-patch:8.1.0440: remove() with a range not sufficiently tested (#9076)Jan Edmund Lazo2018-10-04
| | | | | | | | | | | | | | | Problem: remove() with a range not sufficiently tested. Solution: Add a test. (Dominique Pelle, closes vim/vim#3497) https://github.com/vim/vim/commit/2bfddfc508bcc8dcee108f098eb75844a228fa44
* | | Merge #9078 from janlazo/vim-8.0.1832Justin M. Keyes2018-10-04
|\ \ \
| * | | vim-patch:8.1.0047: no completion for :unlet $VARJan Edmund Lazo2018-10-02
| | | | | | | | | | | | | | | | | | | | | | | | Problem: No completion for :unlet $VAR. Solution: Add completion. (Jason Franklin) https://github.com/vim/vim/commit/19834010889fc5bfa0f88b3ba83133dae6c0a35d
| * | | vim-patch:8.0.1832: cannot use :unlet for an environment variableJan Edmund Lazo2018-10-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot use :unlet for an environment variable. Solution: Make it work. Use unsetenv() if available. (Yasuhiro Matsumoto, closes vim/vim#2855) https://github.com/vim/vim/commit/137374fd6538cf9dee0cb22907728d8fdecb5832
* | | | Fix crash if --embed is used more than onceJames McCoy2018-10-03
|/ / /
* | | TUI: fix support for undercurl/underline color #9080Daniel Hahler2018-10-03
| | |
* | | Merge pull request #9052 from blueyed/undercurlBjörn Linse2018-10-02
|\ \ \ | | | | | | | | tui: add support for undercurl and colored underline
| * | | tui: add support for undercurl and underline colorDaniel Hahler2018-10-01
| | | | | | | | | | | | | | | | Fixes https://github.com/neovim/neovim/issues/7479.
* | | | ui: reserve the right to split a screen redraw into multiple batches.Björn Linse2018-10-02
| | | |
* | | | ui: rename ext_newgrid to ext_linegridBjörn Linse2018-10-01
| | | |
* | | | Revert "TUI: terminfo_start: use unibi_from_term directly"Justin M. Keyes2018-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If $TERM is not defined then unibi_from_term() would crash. Reverts 3bdc34d0657d223599afdf0ce9b072fafa3d5648. ref #9072
* | | | TUI: terminfo_start: use unibi_from_term directly (#9072)Daniel Hahler2018-09-30
|/ / / | | | | | | | | | | | | Avoids redundant call to `getenv("TERM")`. Ref: https://github.com/mauke/unibilium/blob/e3b16d6219ca1cb92d98b1d9cc416b49a3ac468e/uniutil.c#L203-L211
* | | undo: Fix infinite loop if undo_read_byte returns EOF #2880ssteinbach2018-09-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Corrupt(?) persistent undofile leads to an infinite loop. Solution: Break out of loop if undo_read_byte returns EOF (cf. u_read_undo() which does this too). backtrace from lldb (@ a743297be2b3): Process 70700 stopped * thread 1: tid = 0x147d2d1, 0x00007fff8c8facd7 libsystem_pthread.dylib`__mtx_droplock + 209, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP frame 0: 0x00007fff8c8facd7 libsystem_pthread.dylib`__mtx_droplock + 209 libsystem_pthread.dylib`__mtx_droplock + 209: -> 0x7fff8c8facd7: movq %rcx, -0x50(%rbp) 0x7fff8c8facdb: movq %r8, -0x58(%rbp) 0x7fff8c8facdf: movq %rdx, -0x68(%rbp) 0x7fff8c8face3: movq %r14, -0x60(%rbp) (lldb) bt * thread 1: tid = 0x147d2d1, 0x00007fff8c8facd7 libsystem_pthread.dylib`__mtx_droplock + 209, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP * frame 0: 0x00007fff8c8facd7 libsystem_pthread.dylib`__mtx_droplock + 209 frame 1: 0x00007fff8c8fab4e libsystem_pthread.dylib`pthread_mutex_unlock + 63 frame 2: 0x00007fff915da2a4 libsystem_c.dylib`getc + 63 frame 3: 0x000000010e6194b9 nvim`undo_read_byte(bi=0x00007fff5181a838) + 25 at undo.c:1553 frame 4: 0x000000010e619685 nvim`unserialize_uhp(bi=0x00007fff5181a838, file_name=0x000000000f2e8060) + 421 at undo.c:840 frame 5: 0x000000010e618abb nvim`u_read_undo(name=0x0000000000000000, hash=0x00007fff5181af80, orig_name=0x000000000f370dd0) + 1579 at undo.c:1363 frame 6: 0x000000010e4a8db9 nvim`readfile(fname=0x000000000f370dd0, sfname=0x000000000f370dd0, from=0, lines_to_skip=0, lines_to_read=2147483647, eap=0x00007fff5181b6a0, flags=1) + 21017 at fileio.c: 1961 frame 7: 0x000000010e3ecc8b nvim`open_buffer(read_stdin=0, eap=0x00007fff5181b6a0, flags=0) + 603 at buffer.c:153 ... closes #2879 closes #2880
* | | dialog_changed: Remove mistaken assert #9069Daniel Hahler2018-09-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It fails with `nvim -u NONE -c 'set modified' -c 'confirm q'`. Introduced in 3dffc842f (vim-patch:8.0.0983), but the Vim patch [1] does not have this assertion. NULL gets handled in `dialog_msg` [2]. 1: https://github.com/vim/vim/commit/3f9a1ff141412e9e85f7dff47d02946cb9be9228 2: https://github.com/neovim/neovim/blob/c6d36b97bac0df86c1120af323db1b577dc90629/src/nvim/ex_docmd.c#L9704-L9705
* | | vim-patch:8.1.0067: syntax highlighting not working when re-entering a bufferJan Edmund Lazo2018-09-30
| | | | | | | | | | | | | | | | | | Problem: Syntax highlighting not working when re-entering a buffer. Solution: Do force executing autocommands when not called recursively. https://github.com/vim/vim/commit/a5616b0136cea2104a475d143a1685d71e9b2d3d
* | | vim-patch:8.1.0066: nasty autocommand causes using freed memoryJan Edmund Lazo2018-09-30
| | | | | | | | | | | | | | | | | | | | | Problem: Nasty autocommand causes using freed memory. (Dominique Pelle) Solution: Do not force executing autocommands if the value of 'syntax' or 'filetype' did not change. https://github.com/vim/vim/commit/c3ffc9b8d3015dc5280b297b4e3deb4f34944bd4
* | | vim-patch:8.1.0068: nasty autocommands can still cause using freed memoryJan Edmund Lazo2018-09-30
| | | | | | | | | | | | | | | | | | Problem: Nasty autocommands can still cause using freed memory. Solution: Disallow using setloclist() and setqflist() recursively. https://github.com/vim/vim/commit/2f82ca7d79148ae931bf28a747ede06ba8a65de8
* | | lintJan Edmund Lazo2018-09-29
| | |
* | | globals: arg_had_last is boolJan Edmund Lazo2018-09-29
| | |