Commit Graph

12353 Commits

Author SHA1 Message Date
Daniel Hahler
dc1a11dbe1 CI: Fix/improve Travis cache handling [skip appveyor] #10422
Via https://github.com/neovim/neovim/pull/10412

* use list, no indirection
* use job names
* __FOR_TRAVIS_CACHE__ (more descriptive)
2019-07-05 21:45:50 +02:00
Justin M. Keyes
d65181fc9a version bump 2019-07-03 03:15:49 +02:00
Justin M. Keyes
edad360800 NVIM v0.3.8
FIXES:

5b47e4dc38 #10341 security: 'modeline', 'modelineexpr'
e4ecb70d08 #10345 Disallow API calls in the sandbox.
2019-07-03 03:11:42 +02:00
Justin M. Keyes
e4ecb70d08
Merge #10345 from bfredl/apisandbox-0.3
eval/api: don't allow the API to be called in the sandbox.
2019-06-27 00:13:18 +02:00
Björn Linse
413b313ad2 eval/api: don't allow the API to be called in the sandbox.
Identifying and maintaining a "secure" subset of the API would be too
much busywork. So just disable the entire thing.
2019-06-26 21:04:20 +02:00
Justin M. Keyes
5b47e4dc38
Merge #10341 from jamessan/modeline-backports
Modeline fix backports
2019-06-26 21:02:24 +02:00
James McCoy
959ff84e04
vim-patch:8.1.1401: misspelled mkspellmem as makespellmem
Problem:    Misspelled mkspellmem as makespellmem.
Solution:   Drop duplicate help entry, fix test. (Naruhiko Nishino, Ken
            Takata, closes vim/vim#4437)
076073950c
2019-06-26 00:15:41 -04:00
James McCoy
13f3a21226
vim-patch:8.1.1382: error when editing test file
Problem:    Error when editing test file.
Solution:   Remove part of modeline.
3020a87cb1
2019-06-26 00:15:23 -04:00
James McCoy
1bb1b5087e
vim-patch:8.1.1368: modeline test fails with python but without pythonhome
Problem:    Modeline test fails with python but without pythonhome.
Solution:   Correct test argument.
e09244ee35
2019-06-26 00:15:16 -04:00
James McCoy
536e9320a0
vim-patch:8.1.1367: can set 'modelineexpr' in modeline
Problem:    can set 'modelineexpr' in modeline.
Solution:   Add P_SECURE flag.
7e800c6047
2019-06-26 00:15:06 -04:00
James McCoy
3bd532ad15
vim-patch:8.1.1366: using expressions in a modeline is unsafe
Problem:    Using expressions in a modeline is unsafe.
Solution:   Disallow using expressions in a modeline, unless the
            'modelineexpr' option is set.  Update help, add more tests.
110289e781
2019-06-26 00:14:33 -04:00
Jan Edmund Lazo
2c5eede368
vim-patch:8.1.0547: modeline test with keymap still fails
Problem:    Modeline test with keymap still fails.
Solution:   Check that the keymap feature is available for the failure assert.
3067a4dd0d
2019-06-26 00:14:29 -04:00
Jan Edmund Lazo
9ab48aac20
vim-patch:8.1.0546: modeline test with keymap fails
Problem:    Modeline test with keymap fails.
Solution:   Check that the keymap feature is available.
4ace6ab7e7
2019-06-26 00:14:25 -04:00
Jan Edmund Lazo
5cca6f61bb
vim-patch:8.1.0506: modeline test fails when run by root
Problem:    Modeline test fails when run by root.
Solution:   Set 'modeline' for the test. (James McCoy, closes vim/vim#3592)
9691f82f86

N/A patches:

vim-patch:8.1.0208: file left behind after running individual test
2019-06-26 00:14:20 -04:00
Jan Edmund Lazo
6683cb60b8
vim-patch:8.1.0206: duplicate test function name
Problem:    Duplicate test function name.
Solution:   Rename both functions.
cd96eef3a8
2019-06-26 00:14:16 -04:00
Jan Edmund Lazo
a72c05a6f6
vim-patch:8.1.0205: invalid memory access with invalid modeline
Problem:    Invalid memory access with invalid modeline.
Solution:   Pass pointer limit. Add a test. (closes vim/vim#3241)
9cf4b5005f
2019-06-26 00:14:00 -04:00
Jan Edmund Lazo
ad8bba10c4
vim-patch:8.1.1046: the "secure" variable is used inconsistently
Problem:    the "secure" variable is used inconsistently. (Justin M. Keyes)
Solution:   Set it to one instead of incrementing.
82b033eff8
2019-06-26 00:13:54 -04:00
Jan Edmund Lazo
9dca0b27df
vim-patch:8.1.0613: when executing an insecure function the secure flag is stuck
Problem:    When executing an insecure function the secure flag is stuck.
            (Gabriel Barta)
Solution:   Restore "secure" instead of decrementing it. (closes vim/vim#3705)
48f377a476
2019-06-26 00:13:48 -04:00
Abdelhakeem
0ec8da4387
fixup: use vim_snprintf, ASCII_ISALNUM
ASCII_ISALNUM is part of vim-patch:8.1.0540
2019-06-26 00:13:27 -04:00
Abdelhakeem
1d3a1b55d1
vim-patch:8.1.0544: setting 'filetype' in a modeline causes an error
Problem:    Setting 'filetype' in a modeline causes an error (Hirohito
            Higashi).
Solution:   Don't add the P_INSECURE flag when setting 'filetype' from a
            modeline.  Also for 'syntax'.
916a818cea
2019-06-25 22:28:41 -04:00
Abdelhakeem
7ddb102292
vim-patch:8.1.0540: may evaluate insecure value when appending to option
Problem:    May evaluate insecure value when appending to option.
Solution:   Set the secure flag when changing an option that was previously
            set insecurely.  Also allow numbers for the characters from
            'spelllang' that are used for LANG.vim.
247bb7e43b
2019-06-25 22:28:41 -04:00
Abdelhakeem
adff3f4dee
vim-patch:8.1.0539: cannot build without the sandbox
Problem:    Cannot build without the sandbox.
Solution:   Set the secure option instead of using the sandbox.  Also restrict
            the characters from 'spelllang' that are used for LANG.vim.
            (suggested by Yasuhiro Matsumoto)
82e8c92ebe
2019-06-25 22:28:41 -04:00
Jan Edmund Lazo
fee1880ea7
vim-patch:8.1.0538: evaluating a modeline might invoke using a shell command
Problem:    Evaluating a modeline might invoke using a shell command. (Paul
            Huber)
Solution:   Set the sandbox flag when setting options from a modeline.
5958f95a40
2019-06-25 22:28:41 -04:00
Jan Edmund Lazo
f514b7fbbc
vim-patch:8.1.0189: function defined in sandbox not tested
Problem:    Function defined in sandbox not tested.
Solution:   Add a text.
d90a144eda
2019-06-25 22:28:41 -04:00
Jan Edmund Lazo
c202e4a868
vim-patch:8.1.0177: defining function in sandbox is inconsistent
Problem:    Defining function in sandbox is inconsistent, cannot use :function
            but can define a lambda.
Solution:   Allow defining a function in the sandbox, but also use the sandbox
            when executing it. (closes vim/vim#3182)
93343725b5
2019-06-25 22:28:31 -04:00
Justin M. Keyes
154765e4bf version bump 2019-05-29 10:58:40 +02:00
Justin M. Keyes
ede21f9518 NVIM v0.3.7
OTHER:
361d4be588 dist: update nvim.png
2019-05-29 10:57:53 +02:00
Justin M. Keyes
361d4be588 dist: update nvim.png
fix appimage failure:

    -- Deploying icons --
    Deploying icon /home/travis/build/neovim/bot-ci/build/neovim/runtime/nvim.png
    WARNING: x and y resolution of icon are not equal: /home/travis/build/neovim/bot-ci/build/neovim/runtime/nvim.png
    ERROR: Icon /home/travis/build/neovim/bot-ci/build/neovim/runtime/nvim.png has invalid x resolution: 104
    ERROR: Valid resolutions for icons are: 8x8, 16x16, ...
    Failed to deploy icon: /home/travis/build/neovim/bot-ci/build/neovim/runtime/nvim.png
    mv: cannot stat '/home/travis/build/neovim/bot-ci/build/neovim/build/nvim.appimage*': No such file or directory

ref https://github.com/neovim/bot-ci/issues/144
2019-05-29 01:29:24 +02:00
Justin M. Keyes
bd4bb61f35 version bump 2019-05-29 00:35:51 +02:00
Justin M. Keyes
8a6bb66e80 NVIM v0.3.6
FIXES:
4553fc5e6c #10082 vim-patch:8.1.1365: :source should check sandbox

OTHER:
877d539904 #10027 genappimage.sh: migrate to linuxdeploy
2019-05-29 00:34:46 +02:00
Justin M. Keyes
4553fc5e6c
vim-patch:8.1.1365: :source should check sandbox #10082
Problem:    Source command doesn't check for the sandbox. (Armin Razmjou)
Solution:   Check for the sandbox when sourcing a file.
5357552140
2019-05-29 00:33:22 +02:00
Douglas 'dopessoa' Pessoa
877d539904 genappimage.sh: migrate to linuxdeploy #10027
generate_type2_appimage is unmaintained, and lacks a way to rename the appimage file.

fix #9893
2019-05-18 21:34:37 +02:00
Justin M. Keyes
60c3c92db1 release.sh 2019-04-28 22:19:18 +02:00
Justin M. Keyes
d7cf93ce34 version bump 2019-04-28 22:12:54 +02:00
Justin M. Keyes
1060bfd033 NVIM v0.3.5
Maintenance release to fix issues found in v0.3.4.

FIXES:

f891131c6b #9894 options: properly reset directories on 'autochdir'
9a5488c2a6 Remove MSVC optimization workaround for SHM_ALL
1793ba8176 Make SHM_ALL to a variable instead of a compound literal #define
947069ba14 doc: mention "pynvim" module rename
46c7e12f27 #9629 screen: don't crash when drawing popupmenu with 'rightleft' option
f1843c0035 vim-patch:8.1.0677: look-behind match may use the wrong line number
1204421888 #8325 :terminal : set topline based on window height
aaa8c3d711 #9504 :recover : Fix crash on non-existent *.swp
2019-04-28 22:10:12 +02:00
Marco Hinz
f891131c6b options: properly reset directories on 'autochdir' (#9894)
Fixes https://github.com/neovim/neovim/issues/9892
2019-04-15 21:04:16 +02:00
James McCoy
9a5488c2a6 Remove MSVC optimization workaround for SHM_ALL 2019-04-12 02:44:35 +02:00
James McCoy
1793ba8176 Make SHM_ALL to a variable instead of a compound literal #define
gcc-9 has [improved compliance] with the C spec for lifetime of compound
literals, tying their lifetime to block scope instead of function scope.
This makes the behavior comparable to all other automatic variables.

Using the SHM_ALL #define instantiated a compound literal local to an if
clause and assigned the address to a "char_u *".  Since the pointer was
then being used outside of the if clause, it was using an invalid
address.

[improved compliance]: https://gcc.gnu.org/gcc-9/porting_to.html#complit

Closes #9855
2019-04-12 02:43:59 +02:00
Justin M. Keyes
947069ba14 doc: mention "pynvim" module rename
closes #9764
2019-03-26 23:07:04 +01:00
Björn Linse
46c7e12f27
Merge pull request #9629 from bfredl/pumfix
screen: don't crash when drawing popupmenu with 'rightleft' option
2019-02-19 19:30:35 +01:00
Björn Linse
b98be54148 screen: don't crash when drawing popupmenu with 'rightleft' option 2019-02-19 17:46:21 +01:00
Jan Edmund Lazo
f1843c0035 vim-patch:8.1.0677: look-behind match may use the wrong line number
crash reported in #9584

Problem:    Look-behind match may use the wrong line number. (Dominique Pelle)
Solution:   Use the line number in regsave instead of the one in behind_pos,
            we may be looking at the previous line. (closes vim/vim#3749)
866f355814
2019-02-07 22:43:38 +01:00
Justin M. Keyes
1204421888
:terminal : set topline based on window height #8325 2019-02-06 04:12:14 +01:00
raffitz
aaa8c3d711 :recover : Fix crash on non-existent *.swp #9504
Reverts d2944e6a29. mf_open() _can_ fail if the file does not exist.

closes #9503
closes #9504
2019-01-15 00:49:11 +01:00
Justin M. Keyes
7b7266430c version bump 2019-01-13 14:29:45 +01:00
Justin M. Keyes
ab2bbbf6c4 NVIM v0.3.4
This maintenance release fixes some issues found in v0.3.3.

FIXES:

8a7b6200fb #9487 provider: improve error message if provider is missing
44ea903ca5 #9468 checkhealth: detect broken pip
b4028056fa Windows: nvim-qt v0.2.12 (fix potential "blank screen" at startup)
2019-01-13 14:25:08 +01:00
Justin M. Keyes
7523eb3ce4
Merge #9495 from justinmk/release-0.3
release candidate 0.3.4
2019-01-13 02:33:47 +01:00
Marco Hinz
8a7b6200fb provider: improve error message if provider is missing (#9487)
Move `has_eval_provider()` check to `eval_call_provider()` to make sure that
every code path calls it first.

Previously we would, when pynvim was missing, get a nice error message for
`:python3 1`, but not for `:py3file blah`.

Fixes https://github.com/neovim/neovim/issues/9485
2019-01-13 01:49:07 +01:00
Justin M. Keyes
44ea903ca5 checkhealth: detect broken pip #9468 2019-01-13 01:48:32 +01:00
Justin M. Keyes
b4028056fa win/dist: nvim-qt v0.2.12 2019-01-13 01:27:36 +01:00