Commit Graph

15185 Commits

Author SHA1 Message Date
Jan Edmund Lazo
ef3e610138
provider/perl: simplify detection 2020-01-20 19:43:59 -05:00
Jan Edmund Lazo
3420bd21e1
provider/perl: add basic tests 2020-01-20 19:43:59 -05:00
Jacques Germishuys
c25b5a1576
remote plugins: add support for perl hosts 2020-01-20 19:43:59 -05:00
Jan Edmund Lazo
4faf30de3e
ci/Appveyor: install diffutils via scoop
scoop is a Windows package manager, similar to homebrew on OSX.
It is written on powershell, works in unelevated accounts,
is regularly maintained, and does not need mingw/msys2/cygwin
or WSL environments.
Sample use case is running (busybox) bash,
which can be installed via scoop via "scoop install busybox",
to use CI bash scripts in Appveyor.

Parts of scoop's directory can be cached to avoid downloads.
scoop modifies the registry for persistence environment variables
so scoop itself cannot be cached.
2020-01-20 19:43:59 -05:00
Jan Edmund Lazo
40cc5822b1
ci: install perl provider 2020-01-20 19:43:58 -05:00
butwerenotthereyet
f245c0218a tabpage: "tabnext #" switches to previous tab #11734 2020-01-20 15:14:51 -08:00
Björn Linse
ef379d4eaa
Merge pull request #11742 from bfredl/shedbike
shed biking: it's always extmarks, never marks extended
2020-01-20 20:41:17 +01:00
Björn Linse
48a869dc6d shed biking: it's always extmarks, never marks extended 2020-01-20 19:36:35 +01:00
Matthieu Coudron
4d4035400e
Merge pull request #11715 from teto/fix_fillchar
[RDY] fillchars: fix display on closed fold
2020-01-20 18:39:17 +01:00
Justin M. Keyes
270cd623ef
Merge #11735 ':tabs : show # for previous tabpage' 2020-01-19 22:25:53 -08:00
We're Yet
8e385eb46a tabpage: :tabs indicates previous tabpage's curwin 2020-01-19 14:30:12 -08:00
Justin M. Keyes
198d94da0b
Merge #11737 from janlazo/vim-8.1.2421
vim-patch:8.1.{2031,2421}
2020-01-19 13:28:50 -08:00
Björn Linse
75c2c4e1b4
Merge pull request #11736 from bfredl/tenc
restore old 'termencoding' behavior
2020-01-19 20:11:19 +01:00
Björn Linse
b3974e4437 restore old 'termencoding' behavior
Partially reverts #11647. Replaces #11662

The old implementation was removed without clear motivation. The "term option"
hackaround added in its place is neither shorter nor simpler.

The new behavior breaks even init.vim that expliticly check against it:

    if exists('&termencoding')
      set termencoding=utf-8
    endif

There was nothing wrong with the 0.4.x behavior. Empty &tenc has
indicated that the &enc value should be used for all the history of
Nvim. Ignoring setting the option is the expected behavior for Vim
versions that does not support the option (and Nvim is such a version)

'tenc' was also irrelevant to the Test_unicode python3 test.
The reason this has to be disabled is that neovim can't change
internal 'encoding'
2020-01-19 16:07:52 +01:00
Jan Edmund Lazo
f5cc5153c6
vim-patch:8.1.2421: test88 is old style
Problem:    Test88 is old style.
Solution:   Turn into a new style test. (Yegappan Lakshmanan, closes vim/vim#5347)
213ed008bb

'test_conceal.vim' requires +conceal and +terminal so it is N/A.
2020-01-19 10:06:19 -05:00
Jan Edmund Lazo
4c152be726
fixup! fixup! vim-patch.sh: list related missing Vim patches [ci skip] #11514 2020-01-19 10:05:23 -05:00
Jan Edmund Lazo
58033e15d5
vim-patch:8.1.2031: cursor position wrong when resizing and using conceal
Problem:    Cursor position wrong when resizing and using conceal.
Solution:   Set the flags that the cursor position is valid when setting the
            row and column during redrawing. (closes vim/vim#4931)
5babc6e858
2020-01-19 09:47:57 -05:00
Justin M. Keyes
acaf5d233b
Merge #11331 'WinClosed autocmd' 2020-01-18 22:08:49 -08:00
Justin M. Keyes
b648b38bb1 doc: autocmd.txt 2020-01-18 21:32:14 -08:00
Justin M. Keyes
156c25e498 WinClosed: sort auevents.lua; improve tests
- test: reduce verbosity, condense redundancy, improve readability
- auevents.lua: keep events sorted by name. ref afd1d412fa
2020-01-18 21:32:14 -08:00
notomo
2b8e66c6ce autocmd: WinClosed exposes window id as <afile> 2020-01-18 17:06:03 -08:00
Marcos ALMEIDA
757aad92e8 autocmd: add WinClosed event
- only fire once, just before freeing mem
- trigger when on a different buffer
- avoid recursive calls in another tab
2020-01-18 17:06:03 -08:00
Justin M. Keyes
fb8b0503ba
Merge #11707 from janlazo/vim-8.1.1434
vim-patch:8.1.{716,1139},8.2.{112,120,123}
2020-01-18 16:12:16 -08:00
Jan Edmund Lazo
ad35cbca76
vim-patch:8.2.0123: complete_info() does not work when CompleteDone is triggered
Problem:    complete_info() does not work when CompleteDone is triggered.
Solution:   Trigger CompleteDone before clearing the info.
17e04781f2
2020-01-17 23:46:00 -05:00
Jan Edmund Lazo
3d0c3148fb
vim-patch:8.1.1139: no test for what is fixed in patch 8.1.0716
Problem:    No test for what is fixed in patch 8.1.0716.
Solution:   Add a test. (Yasuhiro Matsumoto, closes vim/vim#3797)
9845f36aa6
2020-01-17 23:18:25 -05:00
Jan Edmund Lazo
9a9bb9186a
vim-patch:8.1.0716: get warning message when 'completefunc' returns nothing
Problem:    Get warning message when 'completefunc' returns nothing.
Solution:   Allow for returning v:none to suppress the warning message.
            (Yasuhiro Matsumoto, closes vim/vim#3789)
cee9bc2e3d
2020-01-17 23:09:32 -05:00
Jan Edmund Lazo
a7aa1fc87d
spell: spell_soundfold_sal() is dead code 2020-01-17 19:06:51 -05:00
Jan Edmund Lazo
1042338c00
clang/'Logic error': zero-init struct 2020-01-17 19:06:50 -05:00
Jan Edmund Lazo
d811fab0ad
vim-patch:8.2.0120: virtcol() does not check arguments to be valid
Problem:    virtcol() does not check arguments to be valid, which may lead to
            a crash.
Solution:   Check the column to be valid.  Do not decrement MAXCOL.
            (closes vim/vim#5480)
b3d33d8570
2020-01-17 19:06:50 -05:00
Jan Edmund Lazo
03da3697a4
vim-patch:8.2.0112: illegal memory access when using 'cindent'
Problem:    Illegal memory access when using 'cindent'.
Solution:   Check for NUL byte. (Dominique Pelle, closes vim/vim#5470)
02ad46394e
2020-01-17 19:06:50 -05:00
Björn Linse
fd89ad7bfb
Merge pull request #11390 from erw7/feature-conpty
win/Terminal: Change to use ConPTY, if available
2020-01-17 12:59:50 +01:00
erw7
1e4f290691 Remove termtype option 2020-01-17 11:36:28 +01:00
erw7
c86d5fa981 Change to replace stderr with conout 2020-01-17 11:36:28 +01:00
erw7
4e06594c53 Add missing include file 2020-01-17 11:36:28 +01:00
erw7
a5a3d7160d Change option name from termwintype to termtype 2020-01-17 11:36:28 +01:00
erw7
8f91d709b0 Rename from os_win_conpty.{c,h} to pty_conpty_win.{c,h} 2020-01-17 11:36:28 +01:00
erw7
2c8016c704 Add stdin, stdout replacement functions 2020-01-17 11:36:28 +01:00
erw7
60c7eabb2f Change enum to a name that follows naming convention 2020-01-17 11:36:28 +01:00
erw7
59ae38a919 Change to use TriState instead of bool
Co-Authored-By: Justin M. Keyes <justinkz@gmail.com>
2020-01-17 11:36:28 +01:00
erw7
b25e42f798 Fix function prototype 2020-01-17 11:36:28 +01:00
erw7
b4ff583277 Minor changes in reviewer's point 2020-01-17 11:36:28 +01:00
erw7
7aff0340e1 Move ConPTY resize to os_win_conpty.c 2020-01-17 11:36:28 +01:00
erw7
ed37d1081c Change union name from pty_object to object
Co-Authored-By: Justin M. Keyes <justinkz@gmail.com>
2020-01-17 11:36:28 +01:00
erw7
5355cee77d Change to use ConPTY, if available 2020-01-17 11:36:28 +01:00
Björn Linse
8fe0635e73
Merge pull request #11723 from bfredl/nocleareol
messages: echo "line1\r\nline2" should not clear line1
2020-01-16 20:35:27 +01:00
Björn Linse
b4a92aadd2 messages: echo "line1\r\nline2" should not clear line1 2020-01-16 19:35:45 +01:00
Björn Linse
6e78b21623
Merge pull request #11563 from bfredl/mark_madness
extmarks: mark sanity/madness
2020-01-16 15:31:05 +01:00
Björn Linse
ca1a00edd6 extmarks/bufhl: reimplement using new marktree data structure
Add new "splice" interface for tracking buffer changes at the byte
level. This will later be reused for byte-resolution buffer updates.
(Implementation has been started, but using undocumented "_on_bytes"
option now as interface hasn't been finalized).

Use this interface to improve many edge cases of extmark adjustment.
Changed tests indicate previously incorrect behavior. Adding tests for
more edge cases will be follow-up work (overlaps on_bytes tests)

Don't consider creation/deletion of marks an undoable event by itself.
This behavior was never documented, and imposes  complexity for little gain.

Add nvim__buf_add_decoration temporary API for direct access to the new
implementation. This should be refactored into a proper API for
decorations, probably involving a huge dict.

fixes #11598
2020-01-16 12:36:10 +01:00
Daniel Hahler
8ba3354d74
api_set_error: include expression with "Failed to evaluate expression" (#11713) 2020-01-15 09:08:22 +01:00
Marvim the Paranoid Android
f86acd213b version.c: update [ci skip] #11689
vim-patch:8.0.1789: BufWinEnter does not work well for a terminal window
vim-patch:8.2.0105: Vim license not easy to find on github
vim-patch:8.2.0106: printf formats are not exactly right
vim-patch:8.2.0107: hgignore is out of sync from gitignore
2020-01-14 23:59:48 -08:00