aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/memline.c
Commit message (Collapse)AuthorAge
* vim-patch:8.1.1498: ":write" increments b:changedtick even though nothing ↵Justin M. Keyes2019-09-04
| | | | | | | | | changed Problem: ":write" increments b:changedtick even though nothing changed. (Daniel Hahler) Solution: Only increment b:changedtick if the modified flag is reset. https://github.com/vim/vim/commit/c024b4667875e5bc6fd0ed791530e33c3161bff7
* screen: add some documentation of internals of msg_grid implementationBjörn Linse2019-09-01
|
* screen: use dedicated message gridBjörn Linse2019-09-01
| | | | | | | | add proper msg_set_pos event, delet win_scroll_over_* make compositor click through unfocusable grids add MsgArea attribute for the message/cmdline area, and add docs and tests
* includesDaniel Hahler2019-08-07
|
* lua: support getting UTF-32 and UTF-16 sizes of replaced textBjörn Linse2019-08-06
|
* lua: add {old_byte_size} to on_lines buffer change eventBjörn Linse2019-08-06
|
* vim-patch:8.0.1688: some macros are used without a semicolonJan Edmund Lazo2019-06-26
| | | | | | | Problem: Some macros are used without a semicolon, causing auto-indent to be wrong. Solution: Use the do-while(0) trick. (Ozaki Kiichi, closes vim/vim#2729) https://github.com/vim/vim/commit/6f4700233fd925fe122b851f937929fb5e5da707
* lintAndrej Zieger2019-05-26
|
* lintJustin M. Keyes2019-05-25
|
* vim-patch:8.0.1496: VIM_CLEAR()Justin M. Keyes2019-05-25
| | | | | | | | Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629) vim-patch:8.0.1481
* lintJan Edmund Lazo2019-04-30
|
* vim-patch:8.1.0642: swapinfo() leaks memoryJustin M. Keyes2019-04-29
| | | | | | Problem: swapinfo() leaks memory. Solution: Avoid allocating the strings twice. https://github.com/vim/vim/commit/e6fdf79980c0f2856700d4f46de700293f477429
* lintJustin M. Keyes2019-04-29
|
* vim-patch:8.1.1231: asking about existing swap file unnecessarilyJustin M. Keyes2019-04-29
| | | | | | | | | | | | Problem: Asking about existing swap file unnecessarily. Solution: When it is safe, delete the swap file. Remove HAS_SWAP_EXISTS_ACTION, it is always defined. (closes vim/vim#1237) https://github.com/vim/vim/commit/67cf86bfff5fd5224d557d81cb146f46e33b831c N/A: vim-patch:8.1.1232 vim-patch:8.1.1233 vim-patch:8.1.1236
* vim-patch:8.1.0325: strings in swap file may not be NUL terminatedJustin M. Keyes2019-04-29
| | | | | | Problem: Strings in swap file may not be NUL terminated. (Coverity) Solution: Limit the length of the used string. https://github.com/vim/vim/commit/7c60505e1012a43549c2c075c27463c5399e81ec
* vim-patch:8.1.0314: add swapinfo() "dirty" itemJustin M. Keyes2019-04-29
| | | | | | Problem: Build failure without the +eval feature. (Brenton Horne) Solution: Add #ifdef. Also add the "dirty" item. https://github.com/vim/vim/commit/47ad5656e1e4285a74e7e8e5d0f1f71cd554e25c
* vim-patch:8.1.0313: information about a swap file is unavailableJustin M. Keyes2019-04-29
| | | | | | Problem: Information about a swap file is unavailable. Solution: Add swapinfo(). (Enzo Ferber) https://github.com/vim/vim/commit/00f123a56585363cd13f062fd3bb123efcfaa664
* multigrid: reset win scrolling after swap messageBjörn Linse2019-02-02
|
* :recover : Fix crash on non-existent *.swp #9504raffitz2019-01-15
| | | | | | | Reverts d2944e6a298e. mf_open() _can_ fail if the file does not exist. closes #9503 closes #9504
* api: simplify nvim_buf_get_offset functionBjörn Linse2018-11-01
|
* vim-patch:8.1.0501: cppcheck warns for using array index before bounds check ↵Jan Edmund Lazo2018-11-01
| | | | | | | (#9178) Problem: Cppcheck warns for using array index before bounds check. Solution: Swap the conditions. (Dominique Pelle) https://github.com/vim/vim/commit/a9a8e04eab106c1d21381f79f8965fe50b94e235
* memline: process_still_running is boolJan Edmund Lazo2018-10-13
|
* vim-patch:8.1.0473: user doesn't notice file does not exist when swap file doesJan Edmund Lazo2018-10-13
| | | | | | | Problem: User doesn't notice file does not exist when swap file does. Solution: Add a note that the file cannot be found. Make the "still running" notice stand out. https://github.com/vim/vim/commit/d6105cb4085ad166910897a640693d3bada603e1
* vim-patch:8.1.0466: autocmd test failsJan Edmund Lazo2018-10-08
| | | | | | Problem: Autocmd test fails. Solution: Do call inchar() when flushing typeahead. https://github.com/vim/vim/commit/6a2633b00bb00bcf0d994f08d1c54ace2c221b58
* vim-patch:8.1.0463: "simalt ~x" in .vimrc blocks swap file promptJan Edmund Lazo2018-10-08
| | | | | | | Problem: "simalt ~x" in .vimrc blocks swap file prompt. Solution: Flush buffers before prompting. (Yasuhiro Matsumoto, closes vim/vim#3518, closes vim/vim#2192) https://github.com/vim/vim/commit/798184cc67036285a24b38c0bf6668d4d1525548
* swapfile: Always show swap dialog (E325)Justin M. Keyes2018-09-23
| | | | | | | If swapfile dialog prompts for input, it must be displayed to the user. fix #8840 fix #9027
* vim-patch:8.1.0310: file info msg with 'F' in 'shortmess'Justin M. Keyes2018-09-21
| | | | | | | | | | Problem: File info message not always suppressed with 'F' in 'shortmess'. (Asheq Imran) Solution: Save and restore msg_silent. (Christian Brabandt, closes vim/vim#3221) https://github.com/vim/vim/commit/2f0f871159b2cba862fcd41edab65b17da75c422 ref #8840 ref #9027
* vim-patch:8.0.1417: test doesn't search for a sentenceJan Edmund Lazo2018-09-16
| | | | | | | Problem: Test doesn't search for a sentence. Still fails when searching for start of sentence. (Dominique Pelle) Solution: Add paren. Check for MAXCOL in dec(). https://github.com/vim/vim/commit/1bd999f982e783219a06e6c8f219df1d53ac7e77
* vim-patch:8.0.1416: crash when searching for a sentenceJan Edmund Lazo2018-09-16
| | | | | | Problem: Crash when searching for a sentence. Solution: Return NUL when getting character at MAXCOL. (closes vim/vim#2468) https://github.com/vim/vim/commit/8ada6aa9298b4764d9ca0024dd21b17e815595ce
* vim-patch:8.0.1363: recover swap file ending with .stz #9002Jan Edmund Lazo2018-09-16
| | | | | | | Problem: Recovering does not work when swap file ends in .stz. Solution: Check for all possible swap file names. (Elfling, closes vim/vim#2395, closes vim/vim#2396) https://github.com/vim/vim/commit/af903e5d490ec9c6c49079f67de7e92e3c35a725
* Merge #8863 'refactor: Remove mb_head_off() 'Justin M. Keyes2018-08-28
|\
| * Remove has_mbyte from lines near changes in parent commitZviRackover2018-08-16
| |
| * Remove occurences of mb_head_offZviRackover2018-08-15
| |
* | vim-patch:8.1.0303: line2byte() is wrong for last line with 'noeol'Jan Edmund Lazo2018-08-21
|/ | | | | | Problem: line2byte() is wrong for last line with 'noeol' and 'nofixeol'. Solution: Fix off-by-one error. (Shane Harper, closes vim/vim#3351) https://github.com/vim/vim/commit/c26f7c60532a37a2bf0a5e69aa81081b440dfc38
* memline: fnamecmp_ino() returns boolJan Edmund Lazo2018-08-09
|
* vim-patch:8.0.1819: swap file warning for file with non-existing directoryJan Edmund Lazo2018-08-09
| | | | | | | Problem: Swap file warning for a file in a non-existing directory, if there is another with the same file name. (Juergen Weigert) Solution: When expanding the file name fails compare the file names. https://github.com/vim/vim/commit/8c3169c58eef3e04f643fe9e045a97b81429e0cb
* memline: copy in ml_replace() is boolJan Edmund Lazo2018-08-07
|
* vim-patch:8.0.1512: warning for possibly using NULL pointerJan Edmund Lazo2018-07-23
| | | | | | Problem: Warning for possibly using NULL pointer. (Coverity) Solution: Skip using the pointer if it's NULL. https://github.com/vim/vim/commit/e4db7aedab65abadcc84c78e7a10ec7bb62f11cf
* *: Replace b_changedtick with new always-inline functionsZyX2018-06-22
| | | Ref #8474
* vim-patch:8.0.0451: some macros are in lower caseJan Edmund Lazo2018-06-12
| | | | | | | Problem: Some macros are in lower case. Solution: Make a few more macros upper case. Avoid lower case macros use an argument twice. https://github.com/vim/vim/commit/91acfffc1e6c0d8c2abfb186a0e79a5bf19c3f3f
* vim-patch:8.0.0466: still macros that should be all-caps (#8510)Jan Edmund Lazo2018-06-10
| | | | | Problem: There are still a few macros that should be all-caps. Solution: Make a few more macros all-caps. https://github.com/vim/vim/commit/8820b48654b62472821d9b155fe03ab7ac13a05c
* mf_open(): never fails (except for OOM)Justin M. Keyes2018-05-17
|
* Merge #4486 'refactor: Remove maxmem, maxmemtot options'Justin M. Keyes2018-05-02
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After this change we never release blocks from memory (in practice it never happened because the memory limits are never reached). Let the OS take care of that. --- On today's systems the 'maxmem' and 'maxmemtot' values are huge (4+ GB) so the limits are never reached in practice, but Vim wastes a lot of time checking if the limit was reached. If the limit is reached Vim starts saving pieces of the swap file that were in memory to the disk. Said in a different way: Vim implements its own memory-paging mechanism. This is unnecessary and inefficient since the operating system already has virtual memory and will swap to the disk if programs start using too much memory. This change does... 1. Reduce the number of config options and need for documentation. 2. Make the code more efficient as we don't have to keep track of memory usage nor check if the memory limits were reached to start swapping to disk every time we need memory for buffers. 3. Simplify the code. Once memfile.c is simple enough it could be replaced by actual operating system memory mapping (mmap, MemoryViewOfFile...). This change does not prevent Vim to recover changes from swap files since the swapping code is never triggered with the huge limits set by default.
| * Remove the mf_dont_release global after getting rid of maxmem[tot]Felipe Oliveira Carvalho2017-04-11
| |
* | Merge #8218 'Fix errors reported by PVS'Justin M. Keyes2018-04-27
|\ \ | | | | | | closes #4983
| * | memline: Fix PVS/V547: allocator now never returns NULLZyX2018-04-15
| | |
| * | memline: Fix PVS/V560: allocator now never returns NULLZyX2018-04-15
| | |
* | | lintJustin M. Keyes2018-04-21
| | |
* | | IO: let 'fsync' option control more casesJustin M. Keyes2018-04-21
|/ / | | | | | | | | | | | | | | | | | | | | Vim has the 'swapsync' option which we removed in 62d137ce0969. Instead let 'fsync' control swapfile-fsync. These cases ALWAYS force fsync (ignoring 'fsync' option): - Idle (CursorHold). - Exit caused by deadly signal. - SIGPWR signal. - Explicit :preserve command.
* | refactor/rename: path_is_absolute()Justin M. Keyes2018-03-24
| |