aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* event_teardown(): retry uv_loop_close() instead of abort. #2903oni-link2015-06-25
| | | | | | | | | | | | | | | | | | | | | | | abort() causes a bad exit; retry uv_loop_close() instead. Before this change, this ruby script will cause nvim to abort() instead of exiting cleanly: ``` require 'open3' require 'base64' Open3.popen3('nvim --embed -u -NONE') {|stdin, stdout, stderr, wait_thr| # base64-encoded msgpack message for the vim_command "qa!". stdin.write Base64.decode64('kwKrdmltX2NvbW1hbmSRo3FhIQ==') puts wait_thr.value } ``` References ##2663 Closes #2466 Closes #2648 Helped-by: Rui Abreu Ferreira <raf-ep@gmx.com>
* clipboard: avoid redundant error message on `clipboard_get` failure .Björn Linse2015-06-25
| | | | | | Fixes #2712 Helped-By: Michael Reed <m.reed@mykolab.com>
* Enable -Wconversion: menu.c #2885Ismail Badawi2015-06-25
|
* api: vim_set_var() should return the old value #2899Justin M. Keyes2015-06-25
| | | | Closes #2816
* tests: Migrate legacy test 61.Lucas Hoffmann2015-06-22
| | | | | | | | | | | | | | | | | | This test is real time based as it also tests the `:earlier` and `:later` commands with time arguments (using `:sleep`). This can sometimes case the test to fail on systems that are under heavy load or where the time interval between creating the expected buffer state and the `:earlier` or `:later` command that tries to jump to it changes. To be system independent we use nvim's `:sleep` command and `wait()` for it in the test suit. The legacy vim test writes to test.out a lot with `:.w >>test.out`. This does currently not work in the lua test suite so the test is modernized to use busted's assertions instead of the output file. This test was treated special in the legacy Makefile but after the conversion the related code can be removed.
* spell.c: fix "[s" search. #2813Nathan Wilson2015-06-21
| | | | Closes #2791
* defaults: remove "options" in 'sessionoptions'. #2871Felipe Morales2015-06-21
| | | | Re: https://github.com/neovim/neovim/issues/2676
* defaults: prefix "!" to 'viminfo' by default #2870Felipe Morales2015-06-21
| | | | Re: https://github.com/neovim/neovim/issues/2676
* defaults: set 'tabpagemax' to 50 by default. #2869Felipe Morales2015-06-21
| | | | Re: https://github.com/neovim/neovim/issues/2676
* defaults: set 'display' to "lastline" by default.Felipe Morales2015-06-21
| | | | Re: https://github.com/neovim/neovim/issues/2676
* doc: Fix some typos and trailing whitespace. #2875Lucas Hoffmann2015-06-21
|
* defaults: enable 'hlsearch' by default. #2859Justin M. Keyes2015-06-20
| | | | | | Also update the documentation regarding the option. Re: https://github.com/neovim/neovim/issues/2676
* defaults: enable 'incsearch' by default. #2858Felipe Morales2015-06-20
| | | | | | This also updates the documentation about 'incsearch'. Re: https://github.com/neovim/neovim/issues/2676
* defaults: remove "i" from the default 'complete' #2854Felipe Morales2015-06-20
| | | | | | "i" could slow down the completion. Re: https://github.com/neovim/neovim/issues/2676
* default: enable 'langnoremap'. #2853Felipe Morales2015-06-20
| | | | Re: https://github.com/neovim/neovim/issues/2676
* defaults: set 'mouse' to 'a' by default. #2860Felipe Morales2015-06-20
| | | | | | Re: https://github.com/neovim/neovim/issues/2676 Also, some documentation changes.
* defaults: enable 'autoindent' #2857Felipe Morales2015-06-20
| | | | Re: https://github.com/neovim/neovim/issues/2676
* defaults: enable 'autoread' by default #2856Felipe Morales2015-06-20
| | | | Re: https://github.com/neovim/neovim/issues/2676
* defaults: enable 'smarttab' by default. #2855Felipe Morales2015-06-20
|
* completion: Initialize v:completed_item #2839Shougo Matsushita2015-06-20
| | | | | v:completed_item should always be a dict (not empty string), even before the first completion.
* vim-patch:7.4.575 #2835Felipe Morales2015-06-17
| | | | | | | | | | ``` updated for version 7.4.575 Problem: Unicode character properties are outdated. Solution: Update the tables with the latest version. ``` https://code.google.com/p/vim/source/detail?r=v7-4-575
* tests: Migrate legacy test argument_count.Lucas Hoffmann2015-06-16
|
* tests: Migrate legacy test argument_0count.Lucas Hoffmann2015-06-16
|
* ex_docmd.c: :edit is a no-op in terminal buffers #2822Felipe Morales2015-06-14
| | | | Closes #2779
* vim-patch:7.4.719 #2817Andrea Cedraro2015-06-14
| | | | | | | Problem: Overflow when adding MAXCOL to a pointer. Solution: Subtract pointers instead. (James McCoy) https://github.com/vim/vim/commit/v7-4-719
* vim-patch:7.4.593 #2657David Bürgin2015-06-13
| | | | | | | | | | Problem: Crash when searching for "x\{0,90000}". (Dominique Pelle) Solution: Bail out from the NFA engine when the max limit is much higher than the min limit. https://github.com/vim/vim/commit/v7-4-593 See https://groups.google.com/d/msg/vim_dev/c7owwoseba8/ZETgSNZ6p10J
* tui: make termkey use utf-8 mode when &encoding=utf-8 #2469Björn Linse2015-06-13
|
* vim-patch:7.4.713Felipe Morales2015-06-13
| | | | | | | | patch 7.4.713 Problem: Wrong condition for #ifdef. Solution: Change USR_EXRC_FILE2 to USR_VIMRC_FILE2. (Mikael Fourrier) https://code.google.com/p/vim/source/detail?r=v7-4-713
* version.c: mark NA: 664, 703Justin M. Keyes2015-06-13
|
* version.c: Update patches listFelipe Morales2015-06-13
| | | | | | | | | | | | | | | | | These patches are not applicable (NA): .611 (if_python3.c) .627 (term.c) .666 (X on *nix) .678 (--remote) .683 (vimtutor) .687 (terminal) .691 (mzscheme) .692 (Solaris) .730 (crypto) .731 (GUI) .738 (compiling w/o syntax highlighting) .644 applied in an unsupported platform (Stratus VOS)
* Fix legacy tests makefile after 4873171f. #2826Lucas Hoffmann2015-06-12
|
* tests: Migrate legacy test 74.Lucas Hoffmann2015-06-12
| | | | | Helped-By: David Bürgin <676c7473@gmail.com> Helped-By: Justin M. Keyes <justinkz@gmail.com>
* memline: Don't call memmove() with a NULL argument in ml_add_stack(). #2802oni-link2015-06-12
| | | | | | | | | When ml_add_stack() needs to increase the size of the empty stack, buf->b_ml.ml_stack is NULL and is used as argument in memmove(). This is undefined behaviour. Declaration of memmove() in string.h: extern void *memmove (void *__dest, const void *__src, size_t __n) __THROW __nonnull ((1, 2));
* Add complete() noinsert/noselect support #2792Shougo Matsushita2015-06-11
|
* Add noinsert and noselect features in completeopt #2564Shougo Matsushita2015-06-04
| | | | | | | | | | | | Backported from vim_dev: https://groups.google.com/forum/#!searchin/vim_dev/completeopt/vim_dev/tVsk0pdOGvs/fCzBbPkA4w0J Use case: https://github.com/Shougo/neocomplcache.vim/issues/426 Reviewed-by: Felipe Morales <hel.sheep@gmail.com> Reviewed-by: Scott Prager <splinterofchaos@gmail.com> Reviewed-by: Michael Reed <m.reed@mykolab.com>
* fix for #2732 : win_new_width checks height before terminal_resizeFrederik Van Slycken2015-05-31
| | | | | | | | | | When splitting the window (win_split_ins), function win_new_width is already called before the height has been set. This calls terminal_resize, which passes a height of 0 on to libvterm, which doesn't handle a height of 0 properly. A fix is already in place in terminal.c for not passing on the height, but strictly speaking, it doesn't make sense for window to call terminal_resize when it isn't initialized completely yet.
* terminal : don't set vterm size to 0 (workaround #2732)Frederik Van Slycken2015-05-31
|
* Passing by: Remove X_LOCALE refsMichael Reed2015-05-30
| | | | We don't link to any X11 libs, so this is most likely unneeded.
* main.c:mainerr(): Namespace messagesMichael Reed2015-05-30
| | | | | | | | | | Error messages in general should be namespaced, especially in the context of a shell. Given the possibility of a backgrounded job printing messages to standard output/error, namespacing these messages should avoid any confusion as to where the message came from. Helped-by: Scott Prager <splinterofchaos@gmail.com> Helped-by: oni-link <knil.ino@gmail.com>
* main.c: Simplify error string managementMichael Reed2015-05-30
| | | | | | | | This removes the need for preprocessor defines as array indices, and brings error handling more in line with other files, which for the most most part to use constant strings (also, see `globals.h`). Helped-By: Nicolas Hillegeer <nicolas@hillegeer.com>
* getenv: return NULL if empty #2574Scott Prager2015-05-29
| | | | | | Making an environment variable empty can be a way of unsetting it for platforms that don't support unsetenv(). In most cases, we treat empty variables as having been unset. For all others, use os_env_exists().
* Remove 'octal' from default value for '&nrformats' #2668Felipe Morales2015-05-29
| | | | | | | | | | <C-A> over "07" should increment to "08" by default. Re: https://github.com/neovim/neovim/issues/1664 Reviewed-by: Justin M. Keyes <justinkz@gmail.com> Reviewed-by: Scott Prager <splinterofchaos@gmail.com> Reviewed-by: Michael Reed <m.reed@mykolab.com>
* tests: Migrate legacy test 65.Lucas Hoffmann2015-05-27
| | | | Helped-By: David Bürgin <676c7473@gmail.com>
* tests: Migrate legacy test 82.Lucas Hoffmann2015-05-27
| | | | | Helped-By: David Bürgin <676c7473@gmail.com> Helped-By: Shougo Matsushita <Shougo.Matsu@gmail.com>
* tests: Migrate legacy test 3 #2399David Bürgin2015-05-27
|
* tests: Migrate legacy test 76. #2711Lucas Hoffmann2015-05-27
|
* tests: Migrate legacy test 60. #2721Lucas Hoffmann2015-05-27
| | | | Helped-By: Justin M. Keyes <justinkz@gmail.com>
* tui: don't pass NULL to termkey #2747Scott Prager2015-05-27
| | | | Closes #2745
* input: rename input_{start,stop}_stdin()Justin M. Keyes2015-05-27
| | | | | - "stdin" is misleading because it may read from stdout or stderr - also remove some unused includes
* input: stream_set_blocking(): libuv implJustin M. Keyes2015-05-27
| | | | | | | | | - Create a private libuv loop instead of re-using uv_default_loop(), to avoid conflict[1] with existing watcher(s) on the fd. - Expose the global "input" fd as a getter instead of a mutable global. [1] .deps/build/src/libuv/src/unix/core.c:833: uv__io_stop: Assertion `loop->watchers[w->fd] == w' failed.