aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* 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
|
* doc: v:servername, serverstart()Justin M. Keyes2015-05-17
|
* server: repurpose legacy v:servernameJustin M. Keyes2015-05-17
| | | | | | | - On startup, v:servername is equivalent to $NVIM_LISTEN_ADDRESS - v:servername may be considered the "default" server address - v:servername does not change unless the associated server is stopped by serverstop()
* vim-patch:7.4.562 #2593David Bürgin2015-05-16
| | | | | | | Problem: Segfault with wide screen and error in 'rulerformat'. (Ingo Karkat) Solution: Check there is enough space. (Christian Brabandt) https://github.com/vim/vim/commit/v7-4-562
* vim-patch:7.4.594 #2654David Bürgin2015-05-16
| | | | | | | | | | | Problem: Using a block delete while 'breakindent' is set does not work properly. Solution: Use "line" instead of "prev_pend" as the first argument to lbr_chartabsize_adv(). (Hirohito Higashi) https://github.com/vim/vim/commit/v7-4-594 See https://groups.google.com/d/msg/vim_dev/B8k0AVlqMUU/qKXeY8srpGcJ
* vim-patch:7.4.{629,695,696,701} Mark as included #2666Justin Gassner2015-05-16
| | | | | | | | | | https://github.com/vim/vim/commit/v7-4-629 https://github.com/vim/vim/commit/v7-4-695 https://github.com/vim/vim/commit/v7-4-696 deal with coverity issues which were fixed by #1947 https://github.com/vim/vim/commit/v7-4-701 fixes a compiler warning for an uninitialized variable introduced in 695
* Change 'backspace' default to "indent,eol,start" #2639Michael Reed2015-05-15
| | | | | | | While here, alphabetically sort section 2 of vim_diff.txt Helped-by: Jakob Schnitzer <mail@jakobschnitzer.de> Helped-by: Felipe Morales <hel.sheep@gmail.com>
* Merge pull request #2643 from glts/mark-na-patchesMichael Reed2015-05-14
|\ | | | | | | [RFC] vim-patch: Mark patches as NA
| * vim-patch:7.4.{592,596,632}: Mark as NADavid Bürgin2015-05-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original commit message for patch 7.4.592: Problem: When doing ":e foobar" when already editing "foobar" and 'buftype' is "nofile" the buffer is cleared. (Xavier de Gaye) Solution: Do no clear the buffer. https://github.com/vim/vim/commit/v7-4-592 The change in this patch was amended in patch 7.4.596 to fix an #ifdef problem, but soon after, in patch 7.4.632, it was reverted wholesale. See https://groups.google.com/d/msg/vim_dev/SWw5znc3W-8/TDjkUVYfABIJ
| * vim-patch: Mark patches as NADavid Bürgin2015-05-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These changes do not apply because a) they apply to removed code, or b) they address problems to do with #ifdef'ed code. Marks the following patches as NA: - 7.4.610, https://github.com/vim/vim/commit/v7-4-610 - 7.4.618, https://github.com/vim/vim/commit/v7-4-618 - 7.4.619, https://github.com/vim/vim/commit/v7-4-619 - 7.4.621, https://github.com/vim/vim/commit/v7-4-621 - 7.4.622, https://github.com/vim/vim/commit/v7-4-622 - 7.4.625, https://github.com/vim/vim/commit/v7-4-625 - 7.4.626, https://github.com/vim/vim/commit/v7-4-626 - 7.4.638, https://github.com/vim/vim/commit/v7-4-638 - 7.4.647, https://github.com/vim/vim/commit/v7-4-647 - 7.4.648, https://github.com/vim/vim/commit/v7-4-648 - 7.4.650, https://github.com/vim/vim/commit/v7-4-650 One trivial change had already been included, so the patch number was uncommented: - 7.4.599, https://github.com/vim/vim/commit/v7-4-599
* | Merge pull request #2605 from Pyrohh/manpagesMichael Reed2015-05-13
|\ \ | | | | | | [RDY] Rewrite English man pages in mdoc, update for Nvim
| * | `nvim --help` text: Unify with manpagesMichael Reed2015-05-13
| | |
| * | main.c: Make '-v' synonymous with '--version'Michael Reed2015-05-13
| |/ | | | | | | | | | | | | | | This is done for consistency with '-h' and '--help'. While here, also move the mch_exit() call out of usage to make it clear what is being done. Helped-by: Justin M. Keyes <justinkz@gmail.com>
* / minor cleanup. #2610Mark Bainter2015-05-13
|/ | | | | | | Update vim_isAbsName() to use bool type cleanup casts in vim_findfile() and recover_names() References #2470
* Remove char_u: ReviewMichael Reed2015-05-13
| | | | Helped-by: Scott Prager <splinterofchaos@gmail.com>
* Remove char_u: message:smsg_attr()Michael Reed2015-05-13
|
* Remove char_u: message:smsg()Michael Reed2015-05-13
|
* Remove char_u: ex_docmd:get_view_file()Michael Reed2015-05-13
|
* Remove char_u: main:use_vimrcMichael Reed2015-05-13
|
* Remove char_u: main:process_env()Michael Reed2015-05-13
| | | | In addition, make static and modernize function comment
* Remove char_u: ex_docmd:do_cmdline_cmd()Michael Reed2015-05-13
|
* vim-patch:7.4.587 #2622David Bürgin2015-05-13
| | | | | | | Problem: Conceal does not work properly with 'linebreak'. (cs86661) Solution: Save and restore boguscols. (Christian Brabandt) https://github.com/vim/vim/commit/v7-4-587
* Passing by: regexp_nfa.c: Convert add_here variable to boolDavid Bürgin2015-05-13
|
* vim-patch:7.4.577David Bürgin2015-05-13
| | | | | | | | | | | | | | Problem: Matching with a virtual column has a lot of overhead on very long lines. (Issue 310) Solution: Bail out early if there can't be a match. (Christian Brabandt) Also check for CTRL-C at every position. https://github.com/vim/vim/commit/v7-4-577 See also https://code.google.com/p/vim/issues/detail?id=310 Slightly adapted due to the long_u refactoring in 2ceb1c74d591a07183ee02baf6ff1e205c87c6b8.