aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/shada.c
Commit message (Collapse)AuthorAge
...
* shada: In place of ignoring cursor position with lnum 0 save with 1ZyX2018-03-27
|
* shada: Also filter out invalid cursor position when writing '0' markZyX2018-03-27
| | | | | Based on https://github.com/neovim/neovim/pull/5908#issuecomment-375909903, but with adjusted condition as line number or column less then zero should not appear at all based on what I know.
* macros: Rename LAST_ARRAY_ENTRY to ARRAY_LAST_ENTRYZyX2018-03-27
|
* shada: Make ignore_buf also inlineZyX2018-03-27
|
* shada: Save numbered marksZyX2018-03-26
| | | | | | | Problems so far: - Marks in the current instance are not adjusted. - Duplicates are not removed (not that it works in Vim either now, not at 8.0.134 at least).
* refactor/rename: path_try_shorten_fname()Justin M. Keyes2018-03-24
|
* shada: fix typo (#8066)Daniel Hahler2018-02-25
|
* *: Provide list length when allocating listsZyX2018-01-14
|
* mark: Make sure that jumplist item will not have zero lnumZyX2017-12-24
| | | | Fixes #7169
* *: Fix linter errorsZyX2017-12-11
|
* *: Hide list implementation in other files as wellZyX2017-12-10
|
* shada: Fix linter errorZyX2017-07-04
|
* shada: Make sure that code does not attempt to read too long itemsZyX2017-07-04
| | | Fixes #6957
* shada: Add default value for is_unnamedAdnoC2017-05-31
|
* style/lintAdnoC2017-05-31
|
* shada/linting: Moved some code out of shada_write.AdnoC2017-05-31
| | | | | shada_write was too long (over 500 lines) and caused a linting error. Register initialization was moved to its own function in order to save lines.
* shada: Set the unnamed register to the previous unnamed register on startupAdnoC2017-05-31
|
* shada: Fix V581: adjacent branches with same conditionZyX2017-05-20
|
* *: Use __attribute__((fallthrough)) where comments aren't supportedJames McCoy2017-05-12
| | | | | | | | | Although GCC now detects possibly unintentional fall through, there rules around which the comments are detected are rather strict. In cases where a comment isn't detected, upstream [recommends] using their fallthrough attribute. [recommends]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817#c11
* *: Add comment to all C filesZyX2017-04-19
|
* *: Remove useless assertsZyX2017-04-08
|
* eval/*code,shada: Drop support for converting UTF-8 from/to p_encZyX2017-04-08
| | | | Not needed any longer since p_enc is always utf-8.
* shada: Initialize vimconv_TZyX2017-04-08
|
* eval/decode,shada: Do not forget to clean up convertersZyX2017-04-08
|
* eval: Make writefile() able to disable fsync()ZyX2017-04-02
|
* eval: Move copy_tv to eval/typvalZyX2017-03-29
|
* eval,*: Move get_tv_string to typval.cZyX2017-03-29
| | | | Function was renamed and changed to return `const char *`.
* *: Move some dictionary functions to typval.h and use char*ZyX2017-03-29
| | | | Also fixes buffer reusage in setmatches() and complete().
* eval: Split eval.c into smaller filesZyX2017-03-29
|
* coverity/133898: Fix sizeof argumentZyX2017-01-23
|
* vim-patch:7.4.1925James McCoy2017-01-09
| | | | | | | Problem: Viminfo does not merge file marks properly. Solution: Use a timestamp. Add the :clearjumps command. https://github.com/vim/vim/commit/2d35899721da0e9359a9fe1059554f8c4ea7f0c1
* shada: Mark ALWAYS_INLINE function as `inline`ZyX2017-01-06
|
* shada: Move setpcmark()/cleanup_jumplist() out of the cycleZyX2017-01-04
|
* shada: Fix offset savingZyX2017-01-04
|
* shada: Silence linterZyX2017-01-04
|
* shada: Save current cursor position before saving jumpsZyX2017-01-04
|
* shada: Move '%' handling from shada_write to its own functionJames McCoy2016-12-14
| | | | | shada_get_buflist finds all the relevant buffers and generates the kSDItemBufferList ShadaEntry.
* shada: Respect the optional buffer count for shada-%James McCoy2016-12-12
| | | | Closes #5759
* Avoid serializing NULL string through msgpackJames McCoy2016-11-23
| | | | | | Attempting to serialize a NULL string through msgpack results in msgpack_sbuffer_write attempting to memcpy from a NULL pointer, which is undefined behavior.
* refactor: eliminate misc2.cJustin M. Keyes2016-09-13
| | | | | | | | | | move `call_shell` to misc1.c Move some fns to state.c Move some fns to option.c Move some fns to memline.c Move `vim_chdir*` fns to file_search.c Move some fns to new module, bytes.c Move some fns to fileio.c
* shada: Fix non-writeable ShaDa directory handlingZyX2016-09-04
| | | | | | | | | | | | | Before this change, nvim -i /etc/shada segfaults on exit if the file does not exist and user does not have permissions to create the file at /etc/shada. Closes #5296 Reported in #5277 https://github.com/neovim/neovim/issues/5277#issuecomment-243937255
* option: Also escape commas in options other then &runtimepathZyX2016-07-10
|
* *: Satisfy linter (newest type casts rule)ZyX2016-06-24
|
* file: Move src/nvim/file.* to src/nvim/os/fileio.*ZyX2016-06-24
|
* shada: Do not forget to close ShaDa readerZyX2016-06-23
| | | | | | | | | Previously there was file descriptor leak, not detected by sanitizers. Now it is file descriptor leak with a small memory leak which is detected by ASAN what fails one of the tests (actually, “ShaDa support code leaves .tmp.z in-place when there is error in original ShaDa and it has .tmp.a … .tmp.x”, but error is reported at the next test because leaks are not detected until Neovim exit and Neovim exit happens when clear()/reset() is called which happens in before_each only).
* file: Use own constants, do not rely on fcntl.hZyX2016-06-23
| | | | | | | One of the reasons is that O_RDONLY is zero, which makes checking whether file is opened read- or write-only harder. It is not guaranteed that on other system O_WRONLY will not be zero (e.g. because file can only be opened in read-write mode).
* file: Add buffered reading and writingZyX2016-06-23
| | | | Still no busted tests. Not tested without HAVE_PREADV.
* file,os/fs,shada: Separate opening, closing, writing and reading filesZyX2016-06-23
| | | | | | | | Moves low-level functions handling to os/fs.c. Adds file.c with a proxy interface. Target: while leaving syscalls handling is os.c (partially handled by libuv), add buffering for reading and writing to file.c.
* ops.c: enable -Wconversion warningCharles Joachim2016-05-30
|
* Fix be64toh() detection on BSDs.John Szakmeister2016-05-14
| | | | | | | | | | | | | | | | This was noticed due to a user issue (#4750) when building Neovim 0.1.4 via ports. The crux of the issue is that we did not detect the be64toh() macro, because there is no endian.h on FreeBSD (along with several other BSDs). So we were defaulting to our builtin version of be64toh(). However, it appears that sys/endian.h was being picked up by an include (likely msgpack.h) and so be64toh() was actually defined and corrupting our definition of it. So the answer here was to use the correct include file in our check, and export that information in the config.h. Then we use that information to include the right header in shada.c. This fixes #4750.