Commit Graph

11492 Commits

Author SHA1 Message Date
James McCoy
98632f1cce
doc: Remove irrelevant line about "only the first" vimrc is used
Vim supports multiple locations for the user's vimrc, so it will use the
first one that is found, ignoring the rest.  Nvim follows the XDG spec,
so there is only one place to look for the user's vimrc, thus making the
statement unnecessary and confusing for nvim users.

Ref #8871
2018-08-18 10:35:51 -04:00
Björn Linse
c7db42faab
Merge pull request #8859 from bfredl/cmdline_norm
cmdline: always use save_cmdline before command_line_enter
2018-08-17 13:33:47 +02:00
Björn Linse
4a46ab8de9 cmdline: always use save_cmdline before command_line_enter
":normal :" might be invoked in various ways, so its safest to always
allow recursive invocation of cmdline mode
2018-08-17 10:48:48 +02:00
Björn Linse
b5cfac0894
Merge pull request #8806 from bfredl/bce
tui: fix resize and use BCE more often
2018-08-15 13:02:20 +02:00
Justin M. Keyes
ac2d661450
Merge #8829 from ZviRackover/fix-7401-step2 2018-08-15 10:28:53 +02:00
Justin M. Keyes
bdcd3c31c6
Merge #8852 from janlazo/vim-8.1.0161 2018-08-15 10:26:21 +02:00
Justin M. Keyes
26506f14bc
Merge #8856 from janlazo/vim-8.0.1209 2018-08-15 10:18:22 +02:00
Jan Edmund Lazo
be1525d3c9 lint 2018-08-15 02:13:13 -04:00
Jan Edmund Lazo
a0938e068f vim-patch:8.0.1633: a TextChanged autocmd triggers when it is defined
Problem:    A TextChanged autocmd triggers when it is defined after creating a
            buffer.
Solution:   Set b_last_changedtick when opening a buffer. (Hirohito Highlight,
            closes vim/vim#2742)
8c64a36e40
2018-08-15 01:27:30 -04:00
Jan Edmund Lazo
ee37a0c79a vim-patch:8.0.1413: accessing freed memory in :cbuffer
Problem:    Accessing freed memory in :cbuffer.
Solution:   Get quickfix list after executing autocmds. (closes vim/vim#2470)
aaf6e43b7a
2018-08-15 01:27:30 -04:00
Jan Edmund Lazo
0bdd4e8393 oldtests: finish port of 8.0.1224 2018-08-15 01:27:30 -04:00
Jan Edmund Lazo
8e2a892e70 vim-patch:8.0.1409: buffer overflow in :tags command
Problem:    Buffer overflow in :tags command.
Solution:   Use vim_snprintf(). (Dominique Pelle, closes vim/vim#2471, closes vim/vim#2475)
            Add a test.
132f75255e
2018-08-15 01:27:30 -04:00
Jan Edmund Lazo
1daf2cb0ea vim-patch:8.0.1488: emacs tags no longer work
Problem:    Emacs tags no longer work. (zdohnal)
Solution:   Do not skip over end of line.
0d20737732
2018-08-15 01:27:30 -04:00
Jan Edmund Lazo
5e38ff105c vim-patch:8.0.1218: writing to freed memory in autocmd
Problem:    Writing to freed memory in autocmd.
Solution:   Make a copy of the tag line. (Dominique Pelle, closes vim/vim#2245)
8d84ff1a3c
2018-08-15 01:27:30 -04:00
Jan Edmund Lazo
84569693e1 vim-patch:8.0.1209: still too many old style tests
Problem:    Still too many old style tests.
Solution:   Convert a few more tests to new style. (Yegappan Lakshmanan,
            closes vim/vim#2230)
53f0c96239
2018-08-15 01:27:30 -04:00
Björn Linse
5a0d0286ff TUI: use BCE again more often, as it provides smoother resizes and scrolling
add exceptions for terminals we know doesn't support BCE
2018-08-14 12:34:35 +02:00
Björn Linse
5fad02c081 tui: reenable cursor movement optimizations (leftover from #8221) 2018-08-14 12:34:35 +02:00
Björn Linse
e5bcf83380 tui: hack for invalid first line with non-bce resize 2018-08-14 12:34:35 +02:00
Björn Linse
6c5f9219ef tui: use bce properly 2018-08-14 12:34:35 +02:00
Björn Linse
f767cee100
Merge pull request #8790 from bfredl/hlattr
pass highlight attrs per value and thread-safely to TUI thread
2018-08-14 12:33:12 +02:00
ZviRackover
999d33faf4 lint: clean up after parent commit 2018-08-14 08:38:38 +03:00
Jan Edmund Lazo
538ace9aae oldtests: win: a directory is not executable
Tests in 'test/functional/core/job_spec.lua' depend on this behavior.
2018-08-13 22:07:25 -04:00
Justin M. Keyes
bec5e4cb61
Merge #8832 from eraserhd/vim-insert-setline-undo-fixes 2018-08-14 02:17:05 +02:00
Jan Edmund Lazo
a1a5e35e9a vim-patch:8.1.0262: not enough testing for getftype()
Problem:    Not enough testing for getftype().
Solution:   Add a test. (Dominique Pelle, closes vim/vim#3300)
1598f9937a
2018-08-13 16:06:29 -04:00
Jan Edmund Lazo
163680a58e vim-patch:8.0.1630: trimming white space is not that easy
Problem:    Trimming white space is not that easy.
Solution:   Add the trim() function. (Bukn, closes vim/vim#1280)
295ac5ab5e
2018-08-13 12:04:36 -04:00
Jan Edmund Lazo
e346c01c31 vim-patch:8.1.0161: buffer not updated with 'autoread' set if file was deleted
Problem:    Buffer not updated with 'autoread' set if file was deleted.
            (Michael Naumann)
Solution:   Don't set the timestamp to zero. (closes vim/vim#3165)
386bc82a3f

Sleep 2 seconds for autoread (https://github.com/neovim/neovim/pull/7592).
2018-08-13 11:33:04 -04:00
ZviRackover
7676fc7562 Remove occurrences of 'has_mbyte' near lines changes by parent commit 2018-08-13 18:07:40 +03:00
ZviRackover
7046258a38 Remove all occurrences of mb_off2cells 2018-08-13 18:07:40 +03:00
Björn Linse
fa4c260100 cursor_shape: use attribute ids instead of syntax ids
As attribute ids is the convention in the UI protocol
Also remove non-threadsafe calls in tui.c to syntax module.
2018-08-13 13:35:35 +02:00
Björn Linse
fab555e59c highlight: HlAttrs is a value type; treat it like such 2018-08-13 13:35:35 +02:00
Justin M. Keyes
ee5cc88a73
Merge #8851 from janlazo/vim-8.0.1227 2018-08-13 00:47:51 +02:00
Jan Edmund Lazo
a4c957bab7 lint 2018-08-12 18:21:58 -04:00
Jan Edmund Lazo
cfb2383c26 vim-patch:8.0.1397: pattern with \& following nothing gives an error
Problem:    Pattern with \& following nothing gives an error.
Solution:   Emit an empty node when needed.
890dd05492
2018-08-12 18:09:43 -04:00
Jan Edmund Lazo
3fd2efdb26 vim-patch:8.0.1257: no test for fix of undefined behavior
Problem:    No test for fix of undefined behavior.
Solution:   Add a test. (closes vim/vim#2255)
2973daafe1
2018-08-12 18:03:30 -04:00
Jan Edmund Lazo
0b38011328 vim-patch:8.0.1243: no test for what 8.0.1227 fixes
Problem:    No test for what 8.0.1227 fixes.
Solution:   Add a test that triggers the problem. (Christian Brabandt)
f45938cc20
2018-08-12 17:57:04 -04:00
Jan Edmund Lazo
7faf682525 vim-patch:8.0.1227: undefined left shift in readfile()
Problem:    Undefined left shift in readfile(). (Brian 'geeknik' Carpenter)
Solution:   Add cast to unsigned. (Dominique Pelle, closes vim/vim#2253)
dc1c981294
2018-08-12 17:56:23 -04:00
Justin M. Keyes
97331cab67
Merge #8843 from janlazo/vim-8.0.0828 2018-08-12 19:35:20 +02:00
Justin M. Keyes
ff19f08477 deps: get gperf-3.1.tar.gz from our mirror 2018-08-12 16:21:21 +02:00
Justin M. Keyes
addd181369
Merge #8837 from janlazo/vim-8.0.1290 2018-08-12 14:54:18 +02:00
Justin M. Keyes
1211fa09cf
Merge #8833 from janlazo/vim-8.0.1004 2018-08-12 14:11:47 +02:00
Justin M. Keyes
ae24c9b270
Merge #8847 from janlazo/vim-8.0.1037 2018-08-12 13:05:59 +02:00
Justin M. Keyes
47f9ab4635 CI/travis: fix restore from cache
a369385009 fixed this for "~/.cache/nvim-deps/", but strangely not for
"~/.cache/nvim-deps-downloads/".

ref a369385009
ref #8316
ref #8281

Seen in https://travis-ci.org/neovim/neovim/jobs/414982972 :

    Using third-party dependencies from Travis cache (last update: Aug 11 23:00:15 2018).
    cp: /Users/travis/build/neovim/neovim/deps-downloads/nvim-deps-downloads/…/nvim-deps-downloads/libvterm/a9c7c6fd20fa35e0ad3e0e98901ca12dfca9c25c.tar.gz:
    name too long (not copied)
2018-08-12 12:38:38 +02:00
Jan Edmund Lazo
8ad46a25cb eval: match in find_some_match() is bool 2018-08-11 19:30:08 -04:00
Jan Edmund Lazo
3d77ca39c7 lint 2018-08-11 18:57:54 -04:00
Jan Edmund Lazo
d6a25f89b8 regexp: drop has_mbyte check in regmatch()
has_mbyte is always true in nvim.
2018-08-11 17:45:18 -04:00
Jan Edmund Lazo
594536a1e7 vim-patch:8.0.1361: some users don't want to diff with hidden buffers
Problem:    Some users don't want to diff with hidden buffers.
Solution:   Add the "hiddenoff" item to 'diffopt'. (Alisue, closes vim/vim#2394)
97ce419201
2018-08-11 15:06:07 -04:00
Jan Edmund Lazo
90128843f6 diff: drop enc_utf8 check in diff_equal_char()
enc_utf8 is always true for nvim.
2018-08-11 14:54:48 -04:00
Jan Edmund Lazo
fd334ec2a8 vim-patch:8.0.1046: code duplication in diff mode
Problem:    Code duplication in diff mode.
Solution:   Use diff_equal_char() also in diff_cmp(). (Rick Howe)
ae96b8d058
2018-08-11 14:54:39 -04:00
Jan Edmund Lazo
4f93d05d39 vim-patch:8.0.1037: "icase" of 'diffopt' is not used for highlighting
Problem:    "icase" of 'diffopt' is not used for highlighting differences.
Solution:   Also use "icase". (Rick Howe)
da22b8cc8b
2018-08-11 14:54:39 -04:00
Jan Edmund Lazo
d624aea454 lint 2018-08-11 14:37:17 -04:00