Commit Graph

20078 Commits

Author SHA1 Message Date
Yee Cheng Chin 1fedb0622b Merge pull request #982 from ychin/option-disable-sparkle
Make Sparkle updater an optional component of MacVim
2019-11-03 11:47:18 -08:00
Yee Cheng Chin 675cd65e46 Make Sparkle updater an optional component of MacVim
MacVim by default uses Sparkle to update itself. It checks a URL that
tells it whether there's a new binary release, and if one exists, it
will download it and patches MacVim. However, there are certain
situations where this is not wanted (e.g. when MacVim is bundled as part
of a package management system), and previously there was no way to
disable Sparkle.

Make Sparkle optional by implementing a new configure argument:
`./configure --disable-sparkle`, which will set a compile-time ifdef.
Instead of instantiating the updater in MainMenu.nib as suggested by
Sparkle's documentation, just instantiate it manually in code, and also
disable the "Check for updates" menu item and updater-related preference
pane items to make sure these settings don't confuse users when they are
running a Sparkle-disabled build.

Sparkle.framework is currently still bundled when it's disabled, because
there doesn't seem to be an easy way to configure the copy build phase.
It could be manually removed in a script after the build though, as it's
now optionally linked to instead of mandatory.

Fix #849.
2019-11-03 11:30:40 -08:00
Yee Cheng Chin ec8d47914e MacVim Snapshot 161
Vim patch 8.1.2234

Fixes:

- Fix scripting languages not working (e.g. Python) in binary releases
  by using the correct entitlements. #979

Targets macOS 10.9+

Script interfaces have compatibility with these versions:

- Lua 5.3
- Perl 5.18
- Python2 2.7
- Python3 3.7
- Ruby 2.6
snapshot-161
2019-10-30 04:33:12 -07:00
Yee Cheng Chin 919fd33307 Merge pull request #980 from ychin/hardened-runtime-entitlement-scripting-language
Fix hardened runtime entitlement for scripting languages and add app signing scripts
2019-10-30 04:29:58 -07:00
Yee Cheng Chin c088f643ba Add scripts to sign and notarize MacVim
Add two scripts. First one signs the MacVim app bundle and dmg files
with developer certificate. Second one submits the dmg file to Apple for
app notarization, and waits for the results to come back.

Also added Makefile target `macvim-dmg-release` that will use these
scripts to create a signed and notarized dmg file that can be
distributed and will be play nice with macOS Gatekeeper.
2019-10-30 04:10:24 -07:00
Yee Cheng Chin d642191566 Add hardened runtime entitlements to allow AppleScript + scripting lang
Use get-task-allow which seems to be necessary to get scripting
languages like Python to work. It's discouraged in docs, but from trials
seems like App Notarization will give a warning but still approve the
app.
2019-10-30 04:10:24 -07:00
Yee Cheng Chin 047b3e2a02 Fix Test_v_argv test failure
This is an odd test failure as the test expects the binary name to be
'vim' while MacVim uses a capitalized version 'Vim'.
2019-10-30 04:08:11 -07:00
Yee Cheng Chin 4f32ce3f7b Merge remote-tracking branch 'vim/master' 2019-10-30 01:23:55 -07:00
Bram Moolenaar 3f39697b73 patch 8.1.2234: get_short_pathname() fails depending on encoding
Problem:    get_short_pathname() fails depending on encoding.
Solution:   Use the wide version of the library function. (closes #5129)
2019-10-30 04:10:06 +01:00
Bram Moolenaar 69bf634858 patch 8.1.2233: cannot get the Vim command line arguments
Problem:    Cannot get the Vim command line arguments.
Solution:   Add v:argv. (Dmitri Vereshchagin, closes #1322)
2019-10-29 04:16:57 +01:00
Yee Cheng Chin f24dd52b3f MacVim Snapshot 160
Vim patch 8.1.2224

General:

- MacVim **now requires macOS 10.9**, up from 10.8.
- MacVim binary is now notaraized by Apple. This should make it open
  properly without a security warning in macOS 10.15 Catalina. #959 #825

Features:

- Make mouse cursor higher contrast under macOS 10.13 or older. #910

Fixes:

- Fix OS appearance (dark vs light mode) detection not working. See
  `:help OSAppearanceChanged` for more info on the feature.  #973
- Fix spell checker flagging first words in line. #971 (Vim 8.1.2172)
- Fix wrong highlighting color scheme. #960 (Vim 8.1.2176)

Misc:

- Sparkle updater has been updated to 1.22.00. #963

Targets macOS 10.9+

Script interfaces have compatibility with these versions:

- Lua 5.3
- Perl 5.18
- Python2 2.7
- Python3 3.7
- Ruby 2.6
snapshot-160
2019-10-28 04:27:35 -07:00
Yee Cheng Chin ad80be723b Fix Travis CI build scripts to deploy correctly
In order for build cache to work, both deploy and test stages have to
use the same env vars.
2019-10-28 04:27:35 -07:00
Yee Cheng Chin a4b3a5f23d Merge pull request #975 from ychin/custom-ibeam-cursor-for-old-os
Use a custom I-beam mouse cursor for pre-Mojave OS versions
2019-10-28 01:36:01 -07:00
Yee Cheng Chin f2ef091b2c Use a custom I-beam mouse cursor for pre-Mojave OS versions
Prevoiusly, #859 removed the custom high-contrast I-beam mouse cursor in
favor of using the system-default I-beam cursor. However, it mostly
worked well on 10.14 Mojave or above, as the cursor is designed with
dark mode in mind and works well on both bright and dark backgrounds.
Since this doesn't work well on older macOS versions, add back the
custom cursor and only enable it on those older macOS versions.

Fix #910.
2019-10-28 01:28:59 -07:00
Bram Moolenaar 8b530c1ff9 patch 8.1.2231: not easy to move to the middle of a text line
Problem:    Not easy to move to the middle of a text line.
Solution:   Add the gM command. (Yasuhiro Matsumoto, closes #2070)
2019-10-28 02:13:05 +01:00
Bram Moolenaar 077ff436a7 patch 8.1.2230: MS-Windows: testing external commands can be improved
Problem:    MS-Windows: testing external commands can be improved.
Solution:   Adjust tests, remove duplicate test. (closes #4928)
2019-10-28 00:42:21 +01:00
Bram Moolenaar efae76ab1a patch 8.1.2229: cannot color number column above/below cursor differently
Problem:    Cannot color number column above/below cursor differently.
Solution:   Add LineNrAbove and LineNrBelow. (Shaun Brady, closes #624)
2019-10-27 22:54:58 +01:00
Bram Moolenaar 38ba4dce4a patch 8.1.2228: screenpos() returns wrong values when 'number' is set
Problem:    screenpos() returns wrong values when 'number' is set. (Ben
            Jackson)
Solution:   Compare the column with the window width. (closes #5133)
2019-10-27 21:39:09 +01:00
Bram Moolenaar 1c329c04be patch 8.1.2227: layout wrong if 'lines' changes while cmdline window is open
Problem:    Layout wrong if 'lines' changes while cmdline window is open.
Solution:   Do not restore the window layout if 'lines' changed.
            (closes #5130)
2019-10-27 20:37:35 +01:00
Bram Moolenaar 5b418992cf patch 8.1.2226: cannot use system copy/paste in non-xterm terminals
Problem:    Cannot use system copy/paste in non-xterm terminals.
Solution:   Instead of setting 'mouse' to "a" set it to "nvi" in defaults.vim.
2019-10-27 18:50:25 +01:00
Bram Moolenaar 52410575be patch 8.1.2225: the "last used" info of a buffer is under used
Problem:    The "last used" info of a buffer is under used.
Solution:   Add "lastused" to getbufinfo(). List buffers sorted by last-used
            field. (Andi Massimino, closes #4722)
2019-10-27 05:12:45 +01:00
Yee Cheng Chin 491433d93b Merge remote-tracking branch 'vim/master' 2019-10-26 13:16:46 -07:00
Bram Moolenaar dfded98f87 patch 8.1.2224: cannot build Amiga version
Problem:    Cannot build Amiga version.
Solution:   Add dummy mch_setmouse(). (Ola Söder, closes #5126)
2019-10-26 21:33:19 +02:00
Bram Moolenaar cb86893114 patch 8.1.2223: cannot see what buffer an ml_get error is for
Problem:    Cannot see what buffer an ml_get error is for.
Solution:   Add the buffer number and name in the message
2019-10-26 20:56:21 +02:00
Bram Moolenaar 7ab5d77666 patch 8.1.2222: accessing invalid memory
Problem:    Accessing invalid memory. (Dominique Pelle)
Solution:   Reset highlight_match every time.  (closes #5125)
2019-10-26 20:45:24 +02:00
Bram Moolenaar 96f45c0b6f Update runtime files 2019-10-26 19:53:45 +02:00
Bram Moolenaar 8fc4296436 patch 8.1.2221: cannot filter :disp output
Problem:    Cannot filter :disp output.
Solution:   Support filtereing :disp output. (Andi Massimino, closes #5117)
2019-10-26 17:33:13 +02:00
Bram Moolenaar 6a0cc916bd patch 8.1.2220: :cfile does not abort like other quickfix commands
Problem:    :cfile does not abort like other quickfix commands.
Solution:   Abort when desired. Add tests for aborting. (Yegappan Lakshmanan,
            closes #5121)
2019-10-26 16:48:44 +02:00
Bram Moolenaar 28ed4dfe1f patch 8.1.2219: no autocommand for open window with terminal
Problem:    No autocommand for open window with terminal.
Solution:   Add TerminalWinOpen. (Christian Brabandt)
2019-10-26 16:21:40 +02:00
Bram Moolenaar 453c19257f patch 8.1.2218: "gN" is off by one in Visual mode
Problem:    "gN" is off by one in Visual mode.
Solution:   Check moving forward. (Christian Brabandt, #5075)
2019-10-26 14:42:09 +02:00
Bram Moolenaar c7488a7fc8 patch 8.1.2217: compiler warning for unused variable
Problem:    Compiler warning for unused variable.
Solution:   Move variable inside #ifdef. (John Marriott)
2019-10-26 12:23:04 +02:00
Yee Cheng Chin e0f0d5cde9 Merge pull request #882 from ichizok/fix/travis
Refactor CI script
2019-10-26 03:04:13 -07:00
Bram Moolenaar 1fd30d7bae patch 8.1.2216: text property in wrong place after :substitute
Problem:    Text property in wrong place after :substitute.
Solution:   Pass the new column instead of the old one. (Christian Brabandt,
            closes #4427)
2019-10-25 22:13:29 +02:00
Bram Moolenaar 7aee6876eb patch 8.1.2215: unreachable code in adjusting text prop columns
Problem:    Unreachable code in adjusting text prop columns.
Solution:   Remove the code. (Christian Brabandt)
2019-10-25 21:49:38 +02:00
ichizok 35cdbcc27a Workaround: Omit 'fullscreen' option test
Doing 'set fullscreen' and 'set nofullscreen' at once doesn't work
properly: the values of "&lines" and "&columns" are restored, but the
fullscreen is kept on actually and thus affects 'writedelay' test
performance.
2019-10-25 13:16:02 +09:00
ichizok c91441d8f4 Refactor CI script
* Cache Homebrew taps
* Colorize stage messages
* Simplify if_xxx tests
* Improve if_ruby build config
* Make build stages to separate build and deploy jobs
2019-10-25 13:16:02 +09:00
Bram Moolenaar 11a58af66f patch 8.1.2214: too much is redrawn when 'cursorline' is set
Problem:    Too much is redrawn when 'cursorline' is set.
Solution:   Don't do a complete redraw. (closes #5079)
2019-10-24 22:32:31 +02:00
Bram Moolenaar aa1f04d092 patch 8.1.2213: popup_textprop tests fail
Problem:    Popup_textprop tests fail.
Solution:   Adjust the column and line positioning.
2019-10-24 22:12:54 +02:00
Bram Moolenaar 3691f1ee72 patch 8.1.2212: cannot see the selection type in :reg output
Problem:    Cannot see the selection type in :reg output. (Ayberk Aydın)
Solution:   Add c/l/b. (Christian Brabandt, closes #5110, closes #4546)
2019-10-24 20:17:00 +02:00
Bram Moolenaar 336bf2b8b2 patch 8.1.2211: listener callback "added" argument is not the total
Problem:    Listener callback "added" argument is not the total. (Andy
            Massimino)
Solution:   Compute the total. (closes #5105)
2019-10-24 20:07:07 +02:00
Bram Moolenaar b754b5bf6d patch 8.1.2210: using negative offset for popup_create() does not work
Problem:    Using negative offset for popup_create() does not work.
Solution:   Use -1 instead of zero. (closes #5111)
2019-10-24 19:25:00 +02:00
Bram Moolenaar ec6f735012 patch 8.1.2209: LF in escape codes may be expanded to CR-LF
Problem:    LF in escape codes may be expanded to CR-LF.
Solution:   Do not expand LF in escape codes to CR-LF. (closes #5107)
2019-10-24 17:49:27 +02:00
Bram Moolenaar faf626e5d1 patch 8.1.2208: Unix: Tabs in output might be expanded to spaces
Problem:    Unix: Tabs in output might be expanded to spaces.
Solution:   Reset the XTABS flag. (closes #5108)
2019-10-24 17:43:25 +02:00
Bram Moolenaar edaad6e0a0 patch 8.1.2207: "gn" doesn't work quite right
Problem:    "gn" doesn't work quite right. (Jaehwang Jerry Jung)
Solution:   Improve and simplify the search logic. (Christian Brabandt,
            closes #5103, closes #5075)
2019-10-24 15:23:37 +02:00
Bram Moolenaar 28686682e7 patch 8.1.2206: no test for fixed issue #3893
Problem:    No test for fixed issue #3893.
Solution:   Add a test. (Christian Brabandt, #3893)
2019-10-24 15:12:37 +02:00
Bram Moolenaar 6656c2ec4c patch 8.1.2205: sign entry structure has confusing name
Problem:    Sign entry structure has confusing name.
Solution:   Rename signlist_T to sign_entry_T and prefix se_ to the fields.
2019-10-24 15:00:04 +02:00
Yee Cheng Chin ee73f16b4e Merge pull request #974 from ychin/fix-os-appearance-macos-14
Fix v:os_appearance to work when building against older SDKs
2019-10-24 01:23:08 -07:00
Yee Cheng Chin b82ceda0b8 Fix v:os_appearance to work when building against older SDKs
Use the correct macros to do SDK ifdefs.

Fix #973.
2019-10-24 00:39:39 -07:00
Yee Cheng Chin 53372da42b Merge pull request #972 from ychin/travis-ci-draft-release
Switch Travis CI release to use Github release drafts
2019-10-24 00:29:09 -07:00
Bram Moolenaar 8f7ab4bd1e patch 8.1.2204: crash on exit when closing terminals
Problem:    Crash on exit when closing terminals. (Corey Hickey)
Solution:   Actually wait for the job to stop. (closes #5100)
2019-10-23 23:16:45 +02:00