aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
| * | | lintb-r-o-c-k2018-05-10
| | | |
| * | | api: Make nvim_set_option() update `:verbose set ...`b-r-o-c-k2018-05-03
| | | | | | | | | | | | | | | | | | | | | | | | Make `:verbose set ...` show when an option was last modified by an API client or Lua script/chunk. In the case of an API client, the channel ID is displayed.
* | | | Merge #8371 'API: more reliable/descriptive VimL errors'Justin M. Keyes2018-05-10
|\ \ \ \
| * | | | nvim_eval: fix memory leakJustin M. Keyes2018-05-10
| | | | |
| * | | | API: nvim_eval(): return non-generic VimL errorsJustin M. Keyes2018-05-09
| | | | | | | | | | | | | | | | | | | | Use the same pattern as nvim_call_function (_call_function).
| * | | | API: better way to capture abort-causing non-exception errorsJustin M. Keyes2018-05-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This condition is not perfectly reliable: (did_emsg && force_abort && !current_exception) The more proper way to check for abort-causing non-exception errors is to set up `msg_list` using the "pattern" given by do_cmdline().
| * | | | API: return non-generic VimL errorsJustin M. Keyes2018-05-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Return VimL errors instead of generic errors for: - nvim_call_function - nvim_call_dict_function - Fix tests which were silently broken before this change. This violates #6150 where we agreed not to translate API errors. But that can be fixed later.
| * | | | docJustin M. Keyes2018-05-09
| | | | |
* | | | | UI: redraw statusline when entering cmdline (#8347)raichoo2018-05-10
|/ / / /
* | | | API: nvim_call_dict_function: expect actual function, not nameJustin M. Keyes2018-05-06
| | | |
* | | | API: nvim_call_dict_function: eliminate `internal` paramJustin M. Keyes2018-05-06
| | | | | | | | | | | | | | | | | | | | | | | | The `internal` param is difficult to explain, and will rarely be anything but `true`. To avoid it, use a hack: check if the resolved dict value starts with "function(".
* | | | refactor: nvim_call_dict_functionJustin M. Keyes2018-05-06
| | | | | | | | | | | | | | | | | | | | - Add test coverage for errors. - Rename, rearrange.
* | | | API: nvim_call_dict_function #3032Sebastian Witte2018-05-06
| | | |
* | | | terminal: Leave 'relativenumber' alone (#8360)raichoo2018-05-05
| | | | | | | | | | | | ref #6796
* | | | Merge pull request #8358 from mhinz/screenJames McCoy2018-05-04
|\ \ \ \ | | | | | | | | | | [RFC] screen: avoid artifacts
| * | | | screen: avoid artifactsMarco Hinz2018-05-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Put back the condition that was accidentally removed in https://github.com/neovim/neovim/commit/d42f934bcb3e9e876e5e7ba0ab5cd824175fd10c - if (enc_utf8 && ScreenLinesUC[off] != 0) - bytes[utfc_char2bytes(off, bytes)] = NUL; - else if (enc_dbcs == DBCS_JPNU && ScreenLines[off] == 0x8e) { - bytes[0] = ScreenLines[off]; - bytes[1] = ScreenLines2[off]; - bytes[2] = NUL; - } else if (enc_dbcs && MB_BYTE2LEN(bytes[0]) > 1) { - bytes[1] = ScreenLines[off + 1]; - bytes[2] = NUL; - } + bytes[utfc_char2bytes(off, bytes)] = NUL; Fixes #8357
* | | | | messages: redraw tabline if it was overdrawn by messagesBjörn Linse2018-05-04
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | fixes #8354 Regression from #8088, where we try to avoid clearing the screen if not absolutely necessary
* | | | 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
| | | | |
| * | | | Remove maxmem and maxmemtot optionsFelipe Oliveira Carvalho2017-04-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > The option 'maxmem' ('mm') is used to set the maximum memory used for one > buffer (in kilobytes). 'maxmemtot' is used to set the maximum memory used for > all buffers (in kilobytes). The defaults depend on the system used. These > are not hard limits, but tell Vim when to move text into a swap file. If you > don't like Vim to swap to a file, set 'maxmem' and 'maxmemtot' to a very large > value. The swap file will then only be used for recovery. If you don't want > a swap file at all, set 'updatecount' to 0, or use the "-n" argument when > starting Vim. On today's systems these values are huge (4GB in my machine with 8GB of RAM since it's set as half the available memory by default) 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 swapping mechanism. This is unnecessary and inefficient since the operating system already virtualized the 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.
* | | | | :digraphs : highlight with hl-SpecialKey #2690Jakson Alves de Aquino2018-05-01
| |/ / / |/| | | | | | | | | | | closes #2690
* | | | Merge #8218 'Fix errors reported by PVS'Justin M. Keyes2018-04-27
|\ \ \ \ | | | | | | | | | | closes #4983
| * | | | spellfile: Fix clint errorZyX2018-04-22
| | | | |
| * | | | syntax: Fix PVS/V560: condition was already checkedZyX2018-04-22
| | | | |
| * | | | spellfile: Fix PVS/V547: allocator now never returns NULLZyX2018-04-22
| | | | |
| * | | | *: Fix clint errorsZyX2018-04-22
| | | | |
| * | | | window: Fix PVS/V547: expression already checked in previous if()ZyX2018-04-22
| | | | |
| * | | | window: Silence PVS/V547: height may be changed by curwin ptrZyX2018-04-22
| | | | |
| * | | | api/vim: Fix PVS/V547: node was already dereferenced, so can’t be NULLZyX2018-04-22
| | | | |
| * | | | undo: Silence PVS/V547: expression may be false on other systemZyX2018-04-22
| | | | |
| * | | | ui_bridge: Silence PVS/V547: assuming stopped may be changed via ptrZyX2018-04-22
| | | | |
| * | | | eval/typval: Silence PVS/V576: format is correctZyX2018-04-22
| | | | |
| * | | | ugrid: Silence PVS/V625: UGRID_FOREACH_CELL may be used for one rowZyX2018-04-22
| | | | |
| * | | | tui: Silence PVS/V560: condition is set to true in prev-previous if()ZyX2018-04-22
| | | | |
| * | | | syntax: Fix PVS/V560: condition was checked in previous if(), breakingZyX2018-04-22
| | | | |
| * | | | syntax: Fix PVS/V547: condition was checkedZyX2018-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | In surrounding if() `off` was checked for being non-zero and in previous if() it was checked for being positive.
| * | | | syntax: Silence PVS/V560: condition is always true at that pointZyX2018-04-22
| | | | |
| * | | | syntax: Silence PVS/V522: retval is always non-NULL on this roundZyX2018-04-22
| | | | |
| * | | | syntax: Fix PVS/V560: condition checked in previous if()ZyX2018-04-22
| | | | |
| * | | | strings: Fix PVS/V547: condition already checked by surrounding ifZyX2018-04-22
| | | | |
| * | | | strings: Fix PVS/V779: wrong assert() positionZyX2018-04-22
| | | | |
| * | | | spellfile: Silence PVS/V547: expression may be true on other systemsZyX2018-04-22
| | | | |
| * | | | spellfile: Fix PVS/V547: allocator never returns NULL nowZyX2018-04-22
| | | | |
| * | | | spellfile: Fix PVS/V560: allocator never returns NULL nowZyX2018-04-22
| | | | |
| * | | | spell: Fix PVS/V512: use of sprintf()ZyX2018-04-22
| | | | |
| * | | | search: Fix PVS/V547: allocator never returns NULL nowZyX2018-04-22
| | | | |
| * | | | search: Fix PVS/V560: condition checked in previous if with gotoZyX2018-04-22
| | | | |
| * | | | search: Fix PVS/V547: condition already checked in surrounding ifZyX2018-04-22
| | | | |
| * | | | search: Fix PVS/V547: checking variable right after assigning itZyX2018-04-22
| | | | |
| * | | | screen: Fix PVS/V560: col never reassigned in this part of codeZyX2018-04-22
| | | | |