ZyX
875d287d4b
functests: Test that history is still accessible after :wshada
2015-10-08 22:00:10 +03:00
ZyX
6f6497f5e0
shada: Refactor history merging support to separate functions
2015-10-08 22:00:10 +03:00
ZyX
b905c8a942
shada: Preserve existing file permissions
2015-10-08 22:00:09 +03:00
ZyX
1d3823a5c9
shada: Populate v:oldfiles
2015-10-08 22:00:09 +03:00
ZyX
f43a5e6926
shada: Save v:hlsearch value
2015-10-08 22:00:08 +03:00
ZyX
7abe20f3d3
main: Silence -Wunused-result in main.c for shada_read_file
2015-10-08 22:00:07 +03:00
ZyX
45ad810341
shada: Add more size_t casts
...
As usual, GCC is overparanoid with -Wconversion.
2015-10-08 22:00:07 +03:00
ZyX
8663983cc4
Deprecate &viminfo and :[rw]v, add &shada and :[rw]sh
2015-10-08 22:00:07 +03:00
ZyX
9cf9c4a586
Replace references to viminfo in various places
2015-10-08 22:00:06 +03:00
ZyX
749cae8662
functests: Fix change list ShaDa test failures
2015-10-08 22:00:06 +03:00
ZyX
602efe856a
shada: Use “write then rename” variant by default for writing shada
2015-10-08 22:00:05 +03:00
ZyX
55712dcdb4
shada: Test that history string does not contain zero byte
...
This test can safely be ignored for other kinds of strings, but history string
contains separator after the last NUL byte and string containing NUL byte inside
thus means that separator will be placed at one position, but seeked at
another.
2015-10-08 22:00:05 +03:00
ZyX
c8c5da875c
functests: Test &encoding support
2015-10-08 22:00:03 +03:00
ZyX
ee282cf49e
shada: Add support for converting strings that are read or written
2015-10-08 21:59:57 +03:00
ZyX
b7ebd16af0
documentation: Update documentation
2015-10-08 21:59:56 +03:00
ZyX
98e8c1f37c
shada: Refactor file reading/writing to use os_open
2015-10-08 21:59:56 +03:00
ZyX
d1ae27ceec
shada,functests: Refactor shada items skipping
2015-10-08 21:59:56 +03:00
ZyX
cf004c0d41
functests: Test dumping and loading change list
2015-10-08 21:59:56 +03:00
ZyX
941ec54aa1
shada: Reassign some entry types to WantInfo and WantMarks
...
kShaDaWantMarks now loads only local file change list and file-local marks.
kShaDaWantInfo now loads global marks and jump list.
2015-10-08 21:59:55 +03:00
ZyX
42536abd33
functests: Add tests for dumping/restoring registers
2015-10-08 21:59:55 +03:00
ZyX
8c93877e1c
shada: Add support for dumping and restoring buffer list
2015-10-08 21:59:55 +03:00
ZyX
4eeafe7f72
shada: Use pre-populated set of buffers on removable media
...
Should be faster then constantly running shada_removable for each buffer many
times.
2015-10-08 21:59:54 +03:00
ZyX
75c9a7e65b
shada: Do not record removable buffers and marks
2015-10-08 21:59:54 +03:00
ZyX
200e62efeb
shada: Add support for dumping/restoring bufs changes and win jumps
2015-10-08 21:59:53 +03:00
ZyX
9ab08c8256
functests: Test loading last search/substitute pattern/replacement
2015-10-08 21:59:53 +03:00
ZyX
bc52522616
functests: Add history tests
2015-10-08 21:59:53 +03:00
ZyX
0fe9679101
shada: Initial support for merging history
...
Currently only merges history when reading ShaDa file. No tests yet.
2015-10-08 21:59:53 +03:00
ZyX
94ed7ba03b
shada: Skip reading some items if needed
...
Avoids unneeded malloc()s/free()s and lots of code for parsing.
2015-10-08 21:59:53 +03:00
ZyX
46387b9aac
functests: Add tests for mark dumping/reading
2015-10-08 21:59:52 +03:00
ZyX
e143be7f3d
functests: Add tests for ShaDa variables dumping/reading
2015-10-08 21:59:52 +03:00
ZyX
5e34d4873b
main: Read marks at startup
...
I do not know why marks were not read originally, but without this change marks
are not going to be read at startup when Vim starts without arguments.
2015-10-08 21:59:52 +03:00
ZyX
38c688d7be
shada: Use glibc functions to convert from big endian, add a fallback
2015-10-08 21:59:51 +03:00
ZyX
244dbe3a77
viminfo: First version of ShaDa file dumping
...
What works:
1. ShaDa file dumping: header, registers, jump list, history, search patterns,
substitute strings, variables.
2. ShaDa file reading: registers, global marks, variables.
Most was not tested.
TODO:
1. Merging.
2. Reading history, local marks, jump and buffer lists.
3. Documentation update.
4. Converting some data from &encoding.
5. Safer variant of dumping viminfo (dump to temporary file then rename).
6. Removing old viminfo code (currently masked with `#if 0` in a ShaDa file for
reference).
2015-10-08 21:59:51 +03:00
ZyX
0fdaab995e
mark: Fix valgrind error in mark.c
...
Caused by using memcpy for assigning one structure to another.
2015-10-08 21:59:51 +03:00
ZyX
c71dca0cbd
os/fs: Define os_strerror as an alias to uv_strerror
...
It is not needed to know that os/* uses libuv.
2015-10-08 21:59:50 +03:00
Björn Linse
57d3a2a52f
api: represent api type String as msgpack type STR. closes #1250
2015-10-08 20:18:46 +02:00
Justin M. Keyes
cd6b4af649
Merge pull request #3430 from fwalch/deps/update-libtermkey
...
deps: Update to libtermkey 0.18.
2015-10-07 17:05:50 -07:00
Florian Walch
65b47a05d6
deps: Update to libtermkey 0.18.
...
Same code we were using before, only from official release tarball
instead of our GitHub mirror.
2015-10-07 21:28:09 +02:00
Russ Adams
7be75a0291
test: os_system: spec for non-zero exit. #3419
2015-10-04 22:57:21 -04:00
Justin M. Keyes
5a9b2fc1ae
test: menu_spec: avoid screen test.
...
Redraw can be flaky especially when remote commands happen during
command-mode. Assert the state directly instead of using Screen.
2015-10-04 15:11:23 -04:00
Daniel Hahler
8cfcf01475
tui: fix_terminfo: Handle "tmux" like "screen". #3422
...
Closes #3399
2015-10-04 14:20:27 -04:00
bambu
2788f7fcc8
menu: support :emenu invoked by cmenu map.
2015-10-03 03:02:05 -04:00
Justin M. Keyes
f454e4bb11
Merge pull request #3414 from Pyrohh/cmake-check-wvla
...
build: Check for -Wvla before use
2015-10-02 15:26:16 -04:00
Michael Reed
e0974bdd0d
build: Check if compiler supports -Wvla before use
...
OpenBSD's GCC (4.2.1) doesn't have the -Wvla flag.
2015-10-02 13:02:44 -04:00
Thiago de Arruda
536c0ba27e
Merge PR #3360 'More fixes for 0.1'
2015-10-01 15:37:20 -03:00
Thiago de Arruda
5d185c7772
test: Add basic tests for the TUI
...
The tests use `termopen` to spawn nvim and verify the TUI.
2015-10-01 15:22:49 -03:00
Thiago de Arruda
2182cd6081
ex_docmd: Fix terminal mode check condition for ex_normal
...
Using the `curbuf->terminal` condition alone is wrong since it does not
necessarily mean nvim is in terminal mode. It needs to be used with
`State & TERM_FOCUS` because the current buffer could have changed without
`terminal_enter` exiting.
Close #3403
2015-10-01 15:22:49 -03:00
Thiago de Arruda
0ca3f03c19
tui: Fix queueing of large chunks of input
...
Take the return value of input_enqueue into consideration, waiting for the main
thread to consume input. Close #1714 #3377 .
2015-10-01 15:22:49 -03:00
Thiago de Arruda
394c0c4402
rbuffer: Enhance rbuffer_reset to work with filled RBuffers
2015-10-01 15:22:49 -03:00
Thiago de Arruda
0e4e69e52e
os/input: Don't advance past incomplete sequences in input_enqueue
...
This allows callers to incrementally process buffers that are filled by
incomplete chunks more easily.
2015-10-01 15:22:49 -03:00