aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* 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.
* input: set input stream to blocking on exitJustin M. Keyes2015-05-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If stdin is non-blocking, many tools (e.g. cat(1), read(1)) which assume that stdin is blocking, will break in odd ways: read: read error: 0: Resource temporarily unavailable cat: -: Resource temporarily unavailable rm: error closing file libuv puts stdin in nonblocking mode, and leaves it that way at exit (this is apparently by design). So, before this commit, this always works (because the shell clobbers O_NONBLOCK): $ nvim --cmd q $ read ...but these forms do _not_ work: $ nvim --cmd q && read $ echo foo | nvim --cmd q && read $ nvim && read After this commit, all of the above forms work. Background: https://github.com/fish-shell/fish-shell/commit/437b4397b9cf273922ce7b414bf6626845f15ad0#diff-41f4d294430cd8c36538999d62681ae2 https://github.com/fish-shell/fish-shell/issues/176#issuecomment-15800155 - bash (and other shells: zsh, tcsh, fish), upon returning to the foreground, always sets fd 0 back to blocking mode. This practice only applies to stdin, _not_ stdout or stderr (in practice these fds may be affected anyways). - bash/zsh/tcsh/fish do _not_ restore the non-blocking status of stdin when _resuming a job_. - We do _not_ save/restore the original flags visible to fcntl(F_[SG]ETFL), because (counterintuitively) that isn't expected. Helped-by: oni-link <knil.ino@gmail.com> Closes #2086 Closes #2377 --- Note: The following implementation of stream_set_blocking() was discarded, because it resulted in a failed libuv assertion[1]: int stream_set_blocking(int fd, bool blocking) { uv_pipe_t stream; uv_pipe_init(uv_default_loop(), &stream, 0); uv_pipe_open(&stream, fd); int retval = uv_stream_set_blocking((uv_stream_t *)&stream, blocking); uv_close((uv_handle_t *)&stream, NULL); return retval; } [1] .deps/build/src/libuv/src/unix/core.c:833: uv__io_stop: Assertion `loop->watchers[w->fd] == w' failed.
* vim-patch:7.4.582 #2653David Bürgin2015-05-26
| | | | | | | | | | | | | | | | Problem: Can't match "%>80v" properly. (Axel Bender) Solution: Correctly handle ">". (Christian Brabandt) https://github.com/vim/vim/commit/v7-4-582 See https://groups.google.com/d/msg/vim_dev/n-02i4FnOcw/P3Yyx1OLeXgJ Slightly adapted due to the long_u refactoring in 2ceb1c74d591a07183ee02baf6ff1e205c87c6b8. Reviewed-by: Florian Walch <florian@fwalch.com> Fixes #2726
* vim-patch:7.4.579 #2652David Bürgin2015-05-26
| | | | | | | | | Problem: Wrong cursor positioning when 'linebreak' is set and lines wrap. Solution: (Christian Brabandt) https://github.com/vim/vim/commit/v7-4-579 See https://groups.google.com/d/msg/vim_dev/Eh3N9L68Ajw/4dB5x1RTQJQJ
* tests: Convert legacy test29David Bürgin2015-05-25
|
* 'cpoptions': Remove "j" flagDavid Bürgin2015-05-25
|
* tui: defer resize event #2738Daniel Hahler2015-05-25
| | | | | | | When maximizing the window, often only lines would be detected properly with the `try_resize` handler being called immediately. Fixes https://github.com/neovim/neovim/issues/2322.
* tests: Migrate legacy test 31 #2736Nelson Yeung2015-05-25
|
* completion: Add v:completed_item feature #2563Shougo Matsushita2015-05-24
| | | | | | | Reviewed-by: Michael Reed <m.reed@mykolab.com> Reviewed-by: Luke Andrew <luke.github@la.id.au> Reviewed-by: Justin M. Keyes <justinkz@gmail.com> Reviewed-by: Florian Walch <florian@fwalch.com>
* Rename var eof as input_eof #2728Rui Abreu Ferreira2015-05-24
| | | | | - In Windows eof is a function, renamed the eof var in input.c to input_eof
* Add guard for sys/wait.h header in job.c #2686Rui Abreu Ferreira2015-05-21
| | | | | The sys/wait.h include was moved after the vim.h include, since the include guards are defined in config.h the guards cannot be used earlier.
* Add header guards for sys/time.h and unistd.h in log.cRui Abreu Ferreira2015-05-21
|
* 'cpoptions': Remove "-" flag #2655David Bürgin2015-05-21
|
* options: Include "j" in default 'formatoptions' #2669Felipe Morales2015-05-21
|
* sha256.c: Remove unused headers and comments #2714Steven Oliver2015-05-21
| | | | Reviewed-by: Justin M. Keyes <justinkz@gmail.com>
* options: Search upwards for tags file #2670Felipe Morales2015-05-19
| | | | | | Also remove some references to emacs tags from the docs. References https://github.com/neovim/neovim/issues/1664
* msgpack-rpc: handle failure to convert method arguments #2664Björn Linse2015-05-19
|
* Remove `-T` command-line optionMichael Reed2015-05-18
| | | | | | | It didn't actually do anything after 3baba1e7bc6698e6bc9f1d37fce88b30d6274bc9 Helped-by: Justin M. Keyes <justinkz@gmail.com>
* Cleanup 'ttyscroll' remnantsMichael Reed2015-05-18
| | | | | Removed in 3baba1e7bc6698e6bc9f1d37fce88b30d6274bc9, but the docs weren't updated.
* Cleanup 'ttym[ouse]', FEAT_MOUSE, mouse_(dec|gpm|etc.)Michael Reed2015-05-18
| | | | | | Because of 3baba1e7bc6698e6bc9f1d37fce88b30d6274bc9, it's dead code. Helped-by: Justin M. Keyes <justinkz@gmail.com>
* Cleanup misc.Michael Reed2015-05-18
| | | | | | | | | | | | | | | Regarding debugger.txt (which was Spotted by @Hettomei): The third section was empty, and the second section is very outdated. Nvim doesn't have things like Balloon Evalutation and Sun Visual workshop integration, so just remove the section. Regarding everything else: - term.[ch] and term_defs.h don't exist anymore, so remove refs to them - Add ttybuiltin to vim_diff.txt. It should have been done before, but vim_diff.txt didn't exist when ttybuiltin was removed (done in 3baba1e7bc6698e6bc9f1d37fce88b30d6274bc9,) Helped-by: Justin M. Keyes <justinkz@gmail.com>
* build: Limit --coverage flag to files under "src"Thiago de Arruda2015-05-18
| | | | | | | | Resolves #2632. This is done so C helper modules don't generate unexpected coverage output. Reviewed-by: Justin M. Keyes <justinkz@gmail.com> Reviewed-by: Florian Walch <florian@fwalch.com>
* options: Enable &wildmenu, use "list:longest,full" for &wildmode by default ↵Felipe Morales2015-05-17
| | | | #2677
* vim-patch:7.4.597 #2658David Bürgin2015-05-17
| | | | | | | | | Problem: Cannot change the result of systemlist(). Solution: Initialize v_lock. (Yukihiro Nakadaira) https://github.com/vim/vim/commit/v7-4-597 See https://groups.google.com/d/msg/vim_dev/WXCfHMeqjfk/n2PjNwZ2bzIJ
* vim-patch: Mark some patches as NA #2672cztchoice2015-05-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | These changes cannot apply because they a) fix compiler warning b) modify removed GUI related code c) modify removed build files mark the following patch as NA: * 7.4.728, https://github.com/vim/vim/commit/v7-4-728 * 7.4.727, https://github.com/vim/vim/commit/v7-4-727 * 7.4.726, https://github.com/vim/vim/commit/v7-4-726 * 7.4.724, https://github.com/vim/vim/commit/v7-4-724 * 7.4.720, https://github.com/vim/vim/commit/v7-4-720 * 7.4.705, https://github.com/vim/vim/commit/v7-4-705 * 7.4.681, https://github.com/vim/vim/commit/v7-4-681 * 7.4.679, https://github.com/vim/vim/commit/v7-4-679 * 7.4.677, https://github.com/vim/vim/commit/v7-4-677 * 7.4.676, https://github.com/vim/vim/commit/v7-4-676 * 7.4.674, https://github.com/vim/vim/commit/v7-4-674 * 7.4.669, https://github.com/vim/vim/commit/v7-4-669 * 7.4.663, https://github.com/vim/vim/commit/v7-4-663 * 7.4.657, https://github.com/vim/vim/commit/v7-4-657 Reviewed-by: David Bürgin <676c7473@gmail.com> Reviewed-by: Michael Reed <m.reed@mykolab.com> Reviewed-by: oni-link <knil.ino@gmail.com>
* Build: Use GNUInstallDirs, install man pages #2649Michael Reed2015-05-17
| | | | | | | | | | | For now, only install man pages matching "nvim*.1": we don't want to install xxd.1 as it might conflict with that of a user's Vim installation. closes #1826 Reviewed-by: Florian Walch <florian@fwalch.com> Helped-by: John Szakmeister <john@szakmeister.net>
* options: mark nonfunctional &termencoding option as hidden. #2631Björn Linse2015-05-17
| | | | | | | Remove related dead code and references in the docs. Helped-By: Michael Reed <m.reed@mykolab.com> Helped-By: Shougo Matsushita <Shougo.Matsu@gmail.com>
* passing-by: get_vim_var_str: mark non-null returnJustin M. Keyes2015-05-17
|