Commit Graph

4342 Commits

Author SHA1 Message Date
ZyX
1cdc3298cf documentation: Update documentation
Note about ~/.local/share/nvim/site used in one usr_\* file: this one talks
about user-local installation of third-party plugins, and
~/.local/share/nvim/site is the proper place for them. Most other files talk
about user own configuration and this is ~/.config.
2015-10-23 14:54:10 +03:00
ZyX
a1b0f4073d stdpaths: Do NOT create data directories
This is none of option.c business to create *possibly unneeded* **default**
directories **before** user specified where he actually wants to place the
files.
2015-10-23 14:54:10 +03:00
ZyX
a06a8bad60 stdpaths: Give proper error message in case directory creation failed 2015-10-23 14:54:10 +03:00
ZyX
2e750973e9 shada: Move shada file to a new location 2015-10-23 14:54:10 +03:00
ZyX
502a20a8fe stdpaths,main: Remove all remaining memory leaks 2015-10-23 14:54:10 +03:00
ZyX
0a59c969cc option: Use proper printexpr 2015-10-23 14:54:10 +03:00
ZyX
642a07ce27 option: Remove some memory leaks 2015-10-23 14:54:10 +03:00
ZyX
be91bc1e1a stdpaths: Export get_xdg function (renamed) and use it for runtimepath 2015-10-23 14:54:10 +03:00
ZyX
afb0f2f9b1 stdpaths: Rename export functions so that they have common prefix 2015-10-23 14:54:10 +03:00
ZyX
120ec8c2ea stdpaths: Remove useless functions get_user_*_dir 2015-10-23 14:54:09 +03:00
ZyX
1db5a807b2 stdpaths: Fix some issues, specifically
- Remove/add includes
- Do not pretend that returns are const
- Add function attributes
- Allocate memory always in get_xdg
2015-10-23 14:54:09 +03:00
ZyX
8e2c0fdba5 option: Append with escaped commas 2015-10-23 14:54:09 +03:00
ZyX
ab2944f46c option: Prepare for all environment variables being NULL. 2015-10-23 14:54:09 +03:00
ZyX
ee95f818a6 option: Move all data directories after all config directories 2015-10-23 14:54:09 +03:00
ZyX
efb6045a00 option: Add /site subdirectory to data directories 2015-10-23 14:54:09 +03:00
ZyX
76e2788d87 option: Use different default value for &runtimepath 2015-10-23 14:54:09 +03:00
ZyX
674629be0c os/env: Add functions that can iterate over colon-separated variables 2015-10-23 14:54:09 +03:00
Keerthan Jaic
c2dd07448f option,main: Partial support of XDG base directory specification
- Add functions that are able to query XDG.
- Replace defaults for
  - &runtimepath. Does not follow #78.
  - &viewdir.
  - &undodir.
  - &directory.
  - &backupdir. Does not follow #78.
  - vimrc location.
- Remove user vimrc file line from :version message.
2015-10-23 14:54:09 +03:00
ZyX
fc2bb200f7 documentation: Fix :delmarks! documentation
:delmarks! clears the change list, but this fact is not mentioned. Also true for 
Vim.
2015-10-23 14:47:59 +03:00
ZyX
e96aa067f3 mark: Make clrallmarks correctly free all marks, and set zero tstamps
This and the previous commit together fix #3472. This one also fixes memory leak
on :delmarks!.
2015-10-23 14:47:59 +03:00
ZyX
7a1090eef5 shada: Run set_last_cursor before writing shada file 2015-10-23 14:47:59 +03:00
ZyX
ea2fe52552 functests: Add test to check expected behaviour (failing) 2015-10-23 14:47:59 +03:00
ZyX
a85163a5d2 scripts: Add filter argument to shadacat.py 2015-10-23 14:47:59 +03:00
Justin M. Keyes
e38cbb9367 Merge pull request #1909 from equalsraf/tb-os_serveraddress
server_address()
2015-10-19 18:53:46 -04:00
Justin M. Keyes
ea01c40f52 Merge pull request #3466 from johanhelsing/vim-7.4.793
vim-patch:7.4.793
2015-10-19 09:39:51 -04:00
Rui Abreu Ferreira
3e84a91ac1 Allow server_start to accept a NULL argument
Return 1 if the endpoint argument is NULL, server_start() can get
a NULL value when using server_address_new() or vim_tempname(). Removed
the function attribute.
2015-10-18 16:34:54 +01:00
Rui Abreu Ferreira
5161f447f6 Implement server_address_new()
When creating a local socket/pipe (server_start()) Neovim used vim_tempname() to
generate a unique socket path. For Windows UNIX filepaths cannot be used as
pipe names (they must start with \\.\pipe\). This commit replaces the use of
vim_tempname() for server addresses with server_address_new().

server_address_new() generates unique names for local sockets/pipes - for UNIX
it uses vim_tempname(), for Windows generates names in the form

    \\.\pipe\nvim-PID-COUNTER

where PID is the current process id, and COUNTER is a static uint32_t counter
incremented with every call. This function is now used for server_start() and
server_init() when no address is available.
2015-10-18 16:34:54 +01:00
Johan Klokkhammer Helsing
3bb2662669 vim-patch:7.4.793
Problem:    Can't specify when not to ring the bell.
Solution:   Add the 'belloff' option. (Christian Brabandt)

165bc69d1b
2015-10-18 01:58:18 +02:00
Michael Reed
e9de70e4ea Merge pull request #3468 from Pyrohh/man-bump-date
nvim.1: bump date
2015-10-17 18:57:25 -04:00
Michael Reed
b42803f95f nvim.1: bump date 2015-10-17 14:42:46 -04:00
Justin M. Keyes
75aae5f2f6 Merge pull request #3427 from ZyX-I/verbose-test-report
travis: Use gtest for busted output type
2015-10-17 14:09:39 -04:00
Justin M. Keyes
3a970e57df Merge pull request #2506 from ZyX-I/shada
Replace viminfo with ShaDa files
2015-10-16 01:54:07 -04:00
Thiago de Arruda
a3f048ee06 tui: Flush input on timer_cb
This is required to have <esc> working correctly when the
`ttimeout`/`ttimeoutlen` options are set. Ref:
https://github.com/neovim/neovim/issues/2093#issuecomment-146506480
2015-10-12 07:01:18 -03:00
Ben Noordhuis
b2ff868436 doc: drop obsolete 'langnoremap' section. #3448
Commit e3568364 ("default: enable 'langnoremap'. #2853") enabled it by
default but forgot to remove the lines saying it's disabled by default.

tweaked by Michael Reed
Reviewed-by: Felipe Morales <hel.sheep@gmail.com>

[ci skip]
2015-10-11 21:22:37 -04:00
rosston
d69f3bbb0d vim-patch:8feef4f #3444
Update runtime files.

8feef4ff62
2015-10-11 18:07:58 -04:00
ZyX
db6cba7d57 documentation: Disambiguate ShaDa abbreviation 2015-10-08 22:01:13 +03:00
ZyX
909d79e600 shada: Do not use msgpack_rpc functions for converting data to msgpack
Should protect against #3431
2015-10-08 22:01:13 +03:00
ZyX
3a4a941885 shada: Fix memory leak and double free when setting both &vi and &sd 2015-10-08 22:01:12 +03:00
ZyX
937f6584d7 mark: Do not do unnecessary initialization 2015-10-08 22:01:12 +03:00
ZyX
19785a0198 ex_getln: Fix memory leak when overwriting history item 2015-10-08 22:01:12 +03:00
ZyX
1162962d8b functests: Refactor tests:
- Remove unused variables.
- Do not use helpers.nvim_feed in most cases.
- Do not use helpers.nvim and helpers.nvim_eval at all.
- Add helpers.funcs and helpers.\*meths special tables. Indexing such table 
  creates functions which call helpers.call or helpers.nvim (and similar) with 
  first argument equal to table index.
2015-10-08 22:01:12 +03:00
ZyX
9d72f8ebaa shada: Fix shada_removable signature 2015-10-08 22:01:11 +03:00
ZyX
2dd8e05f9f shada: Fix jump/change list merging code
Errors happens under following conditions:

1. Jump/change list is full.
2. New jump/change list item should go between some of the old ones.
2015-10-08 22:01:11 +03:00
ZyX
0a44d504c8 shada(documentation): Fix outdated comments 2015-10-08 22:01:10 +03:00
ZyX
b8e7915596 shada: Make sure that shada-r option correctly ignores case 2015-10-08 22:01:10 +03:00
ZyX
0966e92cf4 shada: When using shada-r normalize option path 2015-10-08 22:01:10 +03:00
ZyX
7085ea07d8 functests: Move exc_exec to test.functional.helpers 2015-10-08 22:01:10 +03:00
ZyX
56a2549ff8 functests: Do not disable pattern tests
Problem that led to this skip was fixed in [#3309][1].

[1]: 0a116c828d
2015-10-08 22:01:07 +03:00
ZyX
d283e758ea shada: Fix out-of-bounds array access
It leads to a memory leak as well. May overwrite wms->jumps_size.
2015-10-08 22:01:07 +03:00
ZyX
690d280fa8 shada: Save an allocation when writing local marks 2015-10-08 22:01:06 +03:00