Commit Graph

3649 Commits

Author SHA1 Message Date
John Szakmeister
0d35369324 build: install with the correct permissions
The install() command will create the parent directories, but it does so
with the user's umask.  We want to do our best to make sure the correct
permissions are being set, without clobbering existing permissions.

To do this, this commit introduces an install_helper(), which is similar
in signature to the install() command, to help ensure that directories
are created ahead of the actual install() command.  This will attempt to
use 0644 permissions for files and 0755 permissions for directories by
default--though they can be overridden.

To make this work correctly, without trying to introduce some mechanism
with setting the umask, it meant that there's a small portion that makes
use of an "internal" version of the file() command.  It has been tested
on CMake 2.8.11, 2.8.12, and 3.0.2, and works correctly on all versions.

This fixes #1201 and #1086.
2014-09-22 05:56:52 -04:00
André Twupack
2b937fe00d vim-patch:7.4.320
Problem:    Possible crash when an BufLeave autocommand deletes the buffer.
Solution:   Check for the window pointer being valid.  Postpone freeing the
            window until autocommands are done. (Yasuhiro Matsumoto)

https://code.google.com/p/vim/source/detail?r=v7-4-320
2014-09-21 10:42:27 +02:00
André Twupack
e1517d4f53 vim-patch:7.4.360
Problem:    In a regexp pattern a "$" followed by \v or \V is not seen as the
            end-of-line.
Solution:   Handle the situation. (Ozaki Kiichi)

https://code.google.com/p/vim/source/detail?r=v7-4-360
2014-09-21 01:08:03 +02:00
Justin M. Keyes
0ed9f3ec83 Merge pull request #1197 from Shougo/vim-patch-7.4.392
vim-patch:7.4.392
2014-09-20 18:57:10 -04:00
Shougo Matsushita
0171d4a269 Update version.c to Vim 7.4.444 2014-09-21 06:46:10 +09:00
Scott Prager
3253e7ec09 vim-patch:7.4.359
Problem:    When 'ttymouse' is set to 'uxterm' the xterm version is not
            requested. (Tomas Janousek)
Solution:   Do not mark uxterm as a conflict mouse and add
            resume_get_esc_sequence().

https://code.google.com/p/vim/source/detail?r=v7-4-359
2014-09-19 20:23:06 -04:00
Scott Prager
83cd2979a1 vim-patch:7.4.305
Problem:    Making 'ttymouse' empty after the xterm version was requested
            causes problems. (Elijah Griffin)
Solution:   Do not check for DEC mouse sequences when the xterm version was
            requested.  Also don't request the xterm version when DEC mouse
            was enabled.

https://code.google.com/p/vim/source/detail?r=v7-4-305
2014-09-19 20:23:06 -04:00
Justin M. Keyes
dc6db20feb Merge pull request #1194 from Shougo/vim-patch-7.4.410
vim-patch:7.4.410
2014-09-19 18:03:17 -04:00
Justin M. Keyes
a85f7d35d8 Merge pull request #1189 from Shougo/vim-patch-7.4.374
vim-patch:7.4.374
2014-09-19 17:47:51 -04:00
Justin M. Keyes
1fdfe3a484 Merge pull request #1188 from Shougo/vim-patch-7.4.364
vim-patch:7.4.364
2014-09-19 17:46:55 -04:00
Justin M. Keyes
8eef40deaf Merge pull request #1187 from Shougo/vim-patch-7.4.361
vim-patch:7.4.361
2014-09-19 16:09:00 -04:00
André Twupack
ea492696cf vim-patch:7.4.407
Problem:    Inserting text for Visual block mode, with cursor movement,
            repeats the wrong text. (Aleksandar Ivanov)
Solution:   Reset the update_Insstart_orig flag. (Christian Brabandt)

https://code.google.com/p/vim/source/detail?r=v7-4-407
2014-09-19 21:12:47 +02:00
Shougo Matsushita
c5c506666c vim-patch:7.4.382
Problem:    Mapping characters may not work after typing Esc in Insert mode.
Solution:   Fix the noremap flags for inserted characters. (Jacob Niehus)

https://code.google.com/p/vim/source/detail?r=v7-4-382
2014-09-19 21:41:59 +09:00
Shougo Matsushita
102af4f823 vim-patch:7.4.410
Problem:    Fold does not open after search when there is a CmdwinLeave
            autocommand.
Solution:   Restore KeyTyped. (Jacob Niehus)

https://code.google.com/p/vim/source/detail?r=v7-4-410
2014-09-19 19:53:02 +09:00
Shougo Matsushita
1fe6dc03aa vim-patch:7.4.374
Problem:    Character after "fb" command not mapped if it might be a composing
            character.
Solution:   Don't disable mapping when looking for a composing character.
            (Jacob Niehus)

https://code.google.com/p/vim/source/detail?r=v7-4-374
2014-09-19 19:51:21 +09:00
Shougo Matsushita
9829febebc vim-patch:7.4.364
Problem:    When the viminfo file can't be renamed there is no error message.
            (Vladimir Berezhnoy)
Solution:   Check for the rename to fail.

https://code.google.com/p/vim/source/detail?r=v7-4-364
2014-09-19 19:48:39 +09:00
Shougo Matsushita
3654cce0bf vim-patch:7.4.361
Problem:    Lots of flickering when filling the preview window for 'omnifunc'.
Solution:   Disable redrawing. (Hirohito Higashi)

https://code.google.com/p/vim/source/detail?r=v7-4-361
2014-09-19 19:45:52 +09:00
Thiago de Arruda
4a8b52ea08 api/msgpack-rpc: Improve error infrastructure
- Add error type information to `Error`
- Rename `set_api_error` to `api_set_error` for consistency with other api_*
  functions/macros.
- Refactor the api_set_error macro to accept formatted strings and error types
- Improve error messages
- Wrap error messages with gettext macro
- Refactor msgpack-rpc serialization to transform Error instances into [type,
  message] arrays
- Add error type information to API metadata
- Normalize nvim->client and client->nvim error handling(change
  channel_send_call to accept an Error pointer instead of the `errored` boolean
  pointer)
- Use macro to initialize Error structures
2014-09-18 21:30:31 -03:00
Justin M. Keyes
67a16384a4 Merge pull request #1193 from Shougo/vim-patch-7.4.383
vim-patch:7.4.383
2014-09-18 17:51:19 -04:00
Justin M. Keyes
fe446c86cf Merge pull request #1196 from Shougo/vim-patch-7.4.381
vim-patch: 7.4.381
2014-09-18 17:23:47 -04:00
Justin M. Keyes
e2c111384b Merge pull request #1195 from Shougo/vim-patch-7.4.379
vim-patch:7.4.379
2014-09-18 17:23:38 -04:00
André Twupack
f379b44747 vim-patch:7.4.377
Problem:    When 'equalalways' is set a split may report "no room" even though
            there is plenty of room.
Solution:   Compute the available room properly. (Yukihiro Nakadaira)

https://code.google.com/p/vim/source/detail?r=v7-4-377
2014-09-18 22:34:55 +02:00
André Twupack
ab4feeac82 vim-patch:7.4.373
Problem:    Compiler warning for unused argument and unused variable.
Solution:   Add UNUSED.  Move variable inside #ifdef.

https://code.google.com/p/vim/source/detail?r=v7-4-373
2014-09-18 22:31:01 +02:00
André Twupack
781d129445 vim-patch:7.4.372
Problem:    When 'winminheight' is zero there might not be one line for the
            current window.
Solution:   Change the size computations. (Yukihiro Nakadaira)

https://code.google.com/p/vim/source/detail?r=v7-4-372
2014-09-18 22:31:01 +02:00
André Twupack
16fb7fa960 vim-patch:7.4.365
Problem:    Crash when using ":botright split" when there isn't much space.
Solution:   Add a check for the minimum width/height. (Yukihiro Nakadaira)

https://code.google.com/p/vim/source/detail?r=v7-4-365
2014-09-18 22:31:01 +02:00
Shougo Matsushita
b57d6ef09a vim-patch:7.4.392
Problem:    Not easy to detect type of command line window.
Solution:   Add the getcmdwintype() function. (Jacob Niehus)

https://code.google.com/p/vim/source/detail?r=v7-4-392
2014-09-18 20:44:36 +09:00
Shougo Matsushita
693bf89f2a vim-patch:7.4.383
Problem:    Bad interaction between preview window and omnifunc.
Solution:   Avoid redrawing the status line. (Hirohito Higashi)

https://code.google.com/p/vim/source/detail?r=v7-4-383
2014-09-18 20:19:03 +09:00
Shougo Matsushita
3b9a44fbea vim-patch: 7.4.381
Problem:    Get u_undo error when backspacing in Insert mode deletes more than
            one line break. (Ayberk Ozgur)
Solution:   Also decrement Insstart.lnum.

https://code.google.com/p/vim/source/detail?r=v7-4-381
2014-09-18 20:08:42 +09:00
Shougo Matsushita
1a2338bbad vim-patch:7.4.379
Problem:    Accessing freed memory after using setqflist(list, 'r'). (Lcd)
Solution:   Reset qf_index.

https://code.google.com/p/vim/source/detail?r=v7-4-379
2014-09-18 20:06:17 +09:00
Justin M. Keyes
a447160a6c Merge pull request #953 from splinterofchaos/patch235-exepath
vim-patch:7.4.235
2014-09-17 01:28:35 -04:00
Scott Prager
9445eaa297 vim-patch:7.4.235
Problem:    It is not easy to get the full path of a command.
Solution:   Add the exepath() function.

https://code.google.com/p/vim/source/detail?r=5ab2946f7ce560985830fbc3c453bb0f7a01f385
2014-09-17 01:00:24 -04:00
Scott Prager
899878d347 path: learn save_absolute_path(). 2014-09-17 00:57:27 -04:00
Damián Silvani
e32d338c87 vim-patch:7.4.313
Problem:    Changing the return value of getpos() causes an error.  (Jie Zhu)
Solution:   Revert getpos() and add getcurpos().

https://code.google.com/p/vim/source/detail?r=332a5c2b2956d9b18d85268a724d01deea27ec83
2014-09-16 23:35:12 -03:00
Damián Silvani
27f423e734 vim-patch:7.4.310
Problem:    getpos()/setpos() don't include curswant.
Solution:   Add a fifth number when getting/setting the cursor.

https://code.google.com/p/vim/source/detail?r=ccac0aa34eeaf46dad4b831461a532fc3fe71096
2014-09-16 22:43:40 -03:00
Justin M. Keyes
8d6540f876 Merge pull request #1129 from justinmk/clang
clang: Null pointer passed as an argument to a 'nonnull' parameter
2014-09-16 19:01:37 -04:00
Shougo Matsushita
aa66f2487e vim-patch:7.4.369
Problem:    Using freed memory when exiting while compiled with EXITFREE.
Solution:   Set curwin to NULL and check for that. (Dominique Pelle)

https://code.google.com/p/vim/source/detail?r=v7-4-369
2014-09-17 07:01:01 +09:00
Justin M. Keyes
fd60b8ee7e Merge pull request #1183 from Shougo/vim-patch-7.4.368
vim-patch:7.4.368
2014-09-16 14:16:29 -04:00
Thiago de Arruda
0669c5c0b1 channel: Fix unpacker loop condition 2014-09-16 14:17:36 -03:00
Shougo Matsushita
f5320f645b vim-patch:7.4.368
Problem:    Restoring the window sizes after closing the command line window
            doesn't work properly if there are nested splits.
Solution:   Restore the sizes twice. (Hirohito Higashi)

https://code.google.com/p/vim/source/detail?r=v7-4-368
2014-09-16 22:51:16 +09:00
Justin M. Keyes
3b7b79e37d Merge pull request #1140 from atwupack/vp-7.4.341
vim-patch:7.4.341, 7.4.347, 7.4.351, 7.4.358
2014-09-15 14:08:55 -04:00
Justin M. Keyes
874296331b Merge pull request #1177 from NOLFXceptMe/vp-7.4.387
vim-patch:7.4.387
2014-09-15 13:53:21 -04:00
Thiago de Arruda
037ca796a0 eval.c: Rename has('neovim') feature to has('nvim')
To follow the convention of 'nvim' for technical references
2014-09-15 08:21:31 -03:00
Naveen Kumar Molleti
4f3d49d921 vim-patch:7.4.387
Problem:    "4gro" replaces one character then executes "ooo". (Urtica
Dioica)
Solution:   Write the ESC in the second stuff buffer.

https://code.google.com/p/vim/source/detail?r=v7-4-387
2014-09-15 15:35:49 +05:30
Justin M. Keyes
5d35484203 Merge pull request #1169 from splinterofchaos/arglistid
vim-patch:7.4.312
2014-09-15 04:35:49 -04:00
Justin M. Keyes
0838b97739 Merge pull request #1165 from splinterofchaos/fix-patch-371
7.4.371.
2014-09-14 01:01:46 -04:00
Scott Prager
959ebfd5c2 7.4.371 2014-09-14 00:26:23 -04:00
Thiago de Arruda
f928c0a3a0 eval.c: Rename msgpack-rpc functions for consistency 2014-09-13 21:35:47 -03:00
Thiago de Arruda
f0b88466a3 eval.c: Rename jobwrite to jobsend 2014-09-13 21:35:47 -03:00
Thiago de Arruda
2d1b5589e8 server: Rename address environment variable
To follow the pattern of using NVIM for technical descriptions, it was renamed
to NVIM_LISTEN_ADDRESS
2014-09-13 21:35:47 -03:00
Scott Prager
def28adfdd vim-patch:7.4.312
Problem:    Cannot figure out what argument list is being used for a window.
Solution:   Add the arglistid() function. (Marcin Szamotulski)

https://code.google.com/p/vim/source/detail?r=v7-4-312
2014-09-13 18:28:32 -04:00