Commit Graph

3327 Commits

Author SHA1 Message Date
David Bürgin
5a1a2ba783 vim-patch:7.4.537 #2509
Problem:    Value of v:hlsearch reflects an internal variable.
Solution:   Make the value reflect whether search highlighting is actually
            displayed. (Christian Brabandt)

https://github.com/vim/vim/releases/tag/v7-4-537
2015-04-27 02:10:57 -04:00
David Bürgin
af863d46a9 vim-patch:7.4.532 #2504
Problem:    When using 'incsearch' "2/pattern/e" highlights the first match.
Solution:   Move the code to set extra_col inside the loop for count.  (Ozaki
            Kiichi)

https://github.com/vim/vim/releases/tag/v7-4-532
2015-04-27 01:46:43 -04:00
Justin M. Keyes
0928904e16 Merge #2349 'vim-patch:7.4.519' 2015-04-27 01:41:43 -04:00
David Bürgin
d9a51ca811 vim-patch:7.4.554
Problem:    Missing part of patch 7.4.519.
Solution:   Copy back regprog after calling vim_regexec.

https://github.com/vim/vim/tree/v7-4-554
2015-04-27 01:41:42 -04:00
David Bürgin
b3519ca73b vim-patch:7.4.519
Problem:    Crash when using syntax highlighting.
Solution:   When regprog is freed and replaced, store the result.

https://github.com/vim/vim/tree/v7-4-519

Helped-by: Scott Prager <splinterofchaos@gmail.com>
2015-04-27 01:41:42 -04:00
David Bürgin
4230f8c332 'cpoptions': Remove "w" flag #2507 2015-04-27 01:08:17 -04:00
Justin M. Keyes
b85db92d7f Merge #2319 'ex_getln: Fixes for getexmodeline()' 2015-04-26 23:48:01 -04:00
oni-link
86e2d59b8d vim-patch: mark 7.4.690 as included
vim-patch: https://code.google.com/p/vim/source/detail?r=v7-4-690
2015-04-26 23:47:59 -04:00
oni-link
2493b6fefc ex_getln: Fixes for some problems with getexmodeline()
Problems with line-input editing commands in Ex mode
('nvim -e' or 'Q' in normal mode):

CTRL_U: Only after the next keystroke the complete
        line change is shown if the indentation was
        not 0.

        :     asdfCTRL_U

CTRL_T: Memory reallocation with ga_grows() before a
        memmove(), but pointers into the memory are
        not updated.

        :set sw=40
        :CTRL_T
        ...

        Should complain about a memory error.

CTRL_D: Trying to reduce an indentation of 0.

        :set sw=1
        :CTRL_D

        Segfault

Helped-by: Scott Prager <splinterofchaos@gmail.com>
2015-04-26 23:47:59 -04:00
grtlr
e692930af2 Travis: install g++-multilib #2515 2015-04-26 16:27:36 +03:00
Justin M. Keyes
1a636eabd5 Update README.md 2015-04-26 00:02:03 -04:00
Marco Hinz
5b94632f6e test: don't process vimrc #2511
676133aa introduced a new test for calling a nvim instance recursively.
But without '-u NONE', the vimrc (and all plugins) get loaded too, which
breaks the test for things that do stuff on VimEnter.
2015-04-25 23:50:15 -04:00
Jakson Alves de Aquino
f8151735a3 spell.c: give priority to rare words. #2456
See:
  https://groups.google.com/forum/#!topic/vim_dev/rPWOoR3ZgSA
2015-04-25 23:32:48 -04:00
grtlr
dd8531dbb5 vim-patch:7.4.699 #2508
Problem:    E315 when trying to delete a fold. (Yutao Yuan)
Solution:   Make sure the fold doesn't go beyond the last buffer line.
            (Christian Brabandt)

https://code.google.com/p/vim/source/detail?r=v7-4-699
2015-04-25 19:30:38 -04:00
Justin M. Keyes
b464f25109 Merge pull request #2496 from justinmk/doc-fixdel
doc: remove :fixdel
2015-04-25 18:03:35 -04:00
Justin M. Keyes
61d7ca22bb doc/helphelp.txt: mention backticks for technical identifiers
[ci skip]
2015-04-25 18:00:37 -04:00
Justin M. Keyes
a3c0022901 doc: remove :fixdel
:fixdel was removed in 3baba1e7bc

Helped-by: Michael Reed <m.reed@mykolab.com>
2015-04-25 18:00:26 -04:00
Justin M. Keyes
eceff43169 doc/vim_diff.txt: formatting
- backticks in Vim help docs are supported by even the default
  colorscheme; we should start using them for technical identifiers
  instead of quotation marks.
- prefer judicious indentation to gratuitous bullets

Helped-by: Michael Reed <m.reed@mykolab.com>
2015-04-25 18:00:19 -04:00
David Bürgin
44c2db65db vim-patch:7.4.553 #2513
Problem:    Various small issues.
Solution:   Fix those issues.

https://github.com/vim/vim/releases/tag/v7-4-553
2015-04-25 17:15:10 -04:00
David Bürgin
f6d76c0813 vim-patch:7.4.550 #2510
Problem:    curs_rows() function is always called with the second argument
            false.
Solution:   Remove the argument. (Christian Brabandt)
            validate_botline_win() can then also be removed.

https://github.com/vim/vim/releases/tag/v7-4-550
2015-04-25 17:08:40 -04:00
David Bürgin
deeee5bfab options: Remove "g" flag from 'cpoptions' #2505 2015-04-25 15:07:45 -04:00
Felipe Oliveira Carvalho
0bce4dc544 Merge #2486: Replacements for vim_iswhite, VIM_ISDIGIT, vim_isdigit, vim_isxdigit, and vim_isspace
Reviewed-by: Michael Reed <m.reed@mykolab.com>
2015-04-25 13:37:44 -03:00
Felipe Oliveira Carvalho
c96b933acc Improve comments and fix ascii_* attributes 2015-04-24 22:17:02 -03:00
Felipe Oliveira Carvalho
bcfc37ea98 Replace vim_isspace() with ascii_isspace() defined in ascii.h 2015-04-24 20:37:13 -03:00
Felipe Oliveira Carvalho
2ca8afc74e Replace vim_isxdigit() with to ascii_isxdigit() defined in ascii.h 2015-04-24 20:37:13 -03:00
Felipe Oliveira Carvalho
caabcae0b7 Replace VIM_ISDIGIT() and vim_isdigit() with ascii_isdigit() defined in ascii.h 2015-04-24 20:37:13 -03:00
Felipe Oliveira Carvalho
93bf201119 Replace vim_iswhite with ascii_iswhite() defined in ascii.h 2015-04-24 20:37:13 -03:00
Scott Prager
d350d12a00 rpcstart: check argvars, /then/ alloc argv #2462
fixes #2458
2015-04-23 18:27:32 -04:00
Eliseo Martínez
920381c01b Merge #2491: Fix xfree of static value from vim_getenv() refactor.
Reviewed-by: Eliseo Martínez <eliseomarmol@gmail.com>
2015-04-23 22:00:00 +02:00
Rui Abreu Ferreira
1383c5f6cb TAB0 might not be defined in termios.h #2483
- OpenBSD termios.h does not have TAB0, skip
  its use if it is not defined
2015-04-23 15:43:45 -04:00
Florian Walch
f26e35279d Merge pull request #2447 from equalsraf/tb-luarocks-refactor
Refactor luarocks third-party recipe
2015-04-23 21:25:03 +03:00
Mark Bainter
b68ce1460d Fix xfree of static value in expand_shellcmd()
The refactoring of vim_getenv() to remove the mustfree arg
included reworking calling functions.  expand_shellcmd was
also using that to track its usage of the variable within
the function, resulting in #2487. This change addresses
that scenario and cleans up some of the function for style.
2015-04-23 16:12:14 +00:00
Eliseo Martínez
5f34f1b80f Merge #2473: Fix clang analysis warnings. (10)
Reviewed-by: oni-link <knil.ino@gmail.com>
Reviewed-by: Scott Prager <splinterofchaos@gmail.com>
2015-04-23 17:54:00 +02:00
Eliseo Martínez
c22b6124e2 Fix warnings: ex_getln.c: init_history(): NP dereference: FP.
Problem    : Dereference of null pointer @ 4199.
Diagnostic : False positive.
Rationale  : Suggested error path implies that newlen == 0 and
             newlen > hislen, which implies hislen < 0, which is
             impossible (hislen is always between 0 and 10000).
Resolution : Refactor code.
             Asserting oldlen >= 0 should have sufficed, but
             for some reason analyzer doesn't follow implications in
             that case.
             Asserting newlen != 0 || newlen <= hislen works.
             But the chance has been taken to do extensive
             refactoring of this function, as it was difficult to
             understand as it was.
             As a result of refactoring, assert is not needed anymore,
             as we don't call clear_hist_entry() in refactored version.
Refactor   : - Rework algorithm:
               * Drop guard for OOM case, which can't happen now.
               * Drop empty/growing/shrinking cases. Simplify to always
                 doing the same.
               * Perform circular array reordering in all cases
                 (before, it only did when shrinking).
               * Work in batches through memcpy/memset, instead of one
                 entry at a time, as it did before.
             - Inline variable declarations.
             - Replace `ssize_t` by `int`.
             - Introduce oldlen as entry value of hislen.
             - Add a lot of comments.

Helped-by: Scott Prager <splinterofchaos@gmail.com>
Helped-by: oni-link <knil.ino@gmail.com>
2015-04-23 16:26:44 +02:00
Eliseo Martínez
178e9fc2f6 Fix warnings: ops.c: op_yank_reg(): Dead assignment: HI.
Problem    : Dead assignment @ 2480.
Diagnostic : Harmless issue.
Rationale  : It's true `reg` is not used any more after that point.
Resolution : Delete line.
2015-04-23 16:26:44 +02:00
Thiago de Arruda
04e098fc3c Merge PR #2208 'if_python3 support' 2015-04-23 08:27:17 -03:00
Michael Reed
0bd72fcae1 Merge pull request #2479 from Pyrohh/contributing-md
[RFC] CONTRIBUTING: Mention the wiki's troubleshooting & FAQ articles
2015-04-22 14:24:04 -04:00
Rui Abreu Ferreira
f67c3e67ab Update busted version to 2.0.rc8-0 2015-04-22 14:07:10 +01:00
Rui Abreu Ferreira
78460bdf04 Refactor luarocks third-party recipe
- Replace repeated use of the luarocks command and build arguments
  with variables ${LUAROCKS_BINARY} and ${LUAROCKS_BUILDARGS}
2015-04-22 13:45:57 +01:00
Rui Abreu Ferreira
fe9ec9c299 Add option USE_BUNDLED_BUSTED to third-party
- When not running the unit tests, building the third-party busted,
  nvim-client and other dependencies can be skipped by passing
  -DUSE_BUNDLED_BUSTED=FALSE to the third-party project.
2015-04-22 13:45:57 +01:00
Michael Reed
c68fcb6ea1 CONTRIBUTING: Mention the wiki's troubleshooting & FAQ articles
[ci skip]
2015-04-21 19:05:27 -04:00
Shougo Matsushita
577d9f3f7e Improve travis ci script
Reviewed-by: Justin M. Keyes <justinkz@gmail.com>, Nikolay Pavlov <zyx.vim@gmail.com>
2015-04-21 06:20:45 +09:00
Shougo Matsushita
42de617974 Add if_python3 support
Reviewed-by: Michael Reed <m.reed@mykolab.com>, Daniel Hahler <github@thequod.de>
Helped-by: Daniel Hahler <github@thequod.de>
2015-04-21 06:20:23 +09:00
Thiago de Arruda
84891f2802 Change neovim.org references to neovim.io 2015-04-19 17:17:45 -03:00
Eliseo Martínez
7086d435e0 Merge #2418: Remove char_u (4)
Reviewed-by: Scott Prager <splinterofchaos@gmail.com>
Reviewed-by: Michael Reed <m.reed@mykolab.com>
Reviewed-by: Eliseo Martínez <eliseomarmol@gmail.com>
2015-04-19 21:10:21 +02:00
Mark Bainter
30cdba80dd Refactor after_pathsep() to use const qualified args 2015-04-18 21:37:10 +00:00
Mark Bainter
a7e17de048 Refactor get_env() to respect const qualifier
Without the casts*, the compiler rightly warns about the os_getenv
losing the qualifier.  This refactor adds a variable to manage this
properly, and renames the original variables to increase clarity.
2015-04-18 21:37:10 +00:00
John Szakmeister
6395048946 Merge pull request #2443 from jszakmeister/fix-more-release-warnings
Fix a few uninitialized variable warnings.
2015-04-18 16:52:43 -04:00
Eliseo Martínez
f03780c1b8 Fix an uninitialized variable warning for call_start. 2015-04-18 04:37:09 -04:00
John Szakmeister
2cbe7005c2 Fix a couple uninitialized variable warnings in the release build.
Reviewed-by: Eliseo Martínez <eliseomarmol@gmail.com>
Reviewed-by: Marco Hinz <mh.codebro@gmail.com>
Reviewed-by: Björn Linse <bjorn.linse@gmail.com>
2015-04-18 04:37:09 -04:00