aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
Commit message (Collapse)AuthorAge
...
* vim-patch:8.0.0548: saving the redo buffer only works one time (#8629)KunMing Xie2018-06-24
| | | | | | | Problem: Saving the redo buffer only works one time, resulting in the "." command not working well for a function call inside another function call. (Ingo Karkat) Solution: Save the redo buffer at every user function call. (closes vim/vim#1619) https://github.com/vim/vim/commit/d4863aa99e0527e9505c79cbeafc68a6832200bf
* vim-patch:8.0.0551: the typeahead buffer is reallocated too often (#8598)Jan Edmund Lazo2018-06-20
| | | | | Problem: The typeahead buffer is reallocated too often. Solution: Re-use the existing buffer if possible. https://github.com/vim/vim/commit/d34f9b1155a6b470e1dc766ff98192f440e7eba7
* get_maphash: fix off-by-oneJustin M. Keyes2018-06-14
| | | | | | Patch-by: oni-link <knil.ino@gmail.com> ref: https://github.com/neovim/neovim/pull/6236#discussion_r195113807
* 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
* getchar.c: Fix PVS/V522: Dereference of null pointer mp_matchJustin M. Keyes2018-05-20
|
* Merge #5658 'Apply :lmap in macros'Justin M. Keyes2018-05-17
|\
| * Ensure :lmap mappings take preferenceMatthew Malcomson2018-03-14
| | | | | | | | | | | | If the mental model of :lmap mappings is a translation between your keyboard and vim proper, then they should take preference over :imap (and other) mappings. This patch makes that happen.
| * Record :lmap transformed keys in gotchars()Matthew Malcomson2018-03-14
| | | | | | | | | | | | | | The mental model of :lmap and 'keymap' is of a transformation done before anything else. Hence when recording a macro, or writing to a scriptfile, the transformed keys should be recorded instead of the keys before the transformation.
* | 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.
* | Merge branch 'master' into s-dash-stdinb-r-o-c-k2018-04-14
|\ \
| * | insert-mode: interpret unmapped META as ESCJustin M. Keyes2018-04-04
| | | | | | | | | | | | | | | | | | closes #2454 closes #8213 ref #7972
| * | getchar: implement <Cmd> key to invoke command in any modeBjörn Linse2018-03-23
| |/
| * vim-patch:8.0.0402: :map completion does not have <special>ckelsel2018-01-15
| | | | | | | | | | | | | | Problem: :map completion does not have <special>. (Dominique Pelle) Solution: Recognize <special> in completion. Add a test. https://github.com/vim/vim/commit/cf5fdf7d1689ecb145b634dcb9c6e9fc60f63869
| * vim-patch:8.0.0074Michael Schupikov2017-12-15
| | | | | | | | | | | | | | | | | | | | Problem: Cannot make Vim fail on an internal error. Solution: Add IEMSG() and IEMSG2(). (Domenique Pelle) Avoid reporting an internal error without mentioning where. https://github.com/vim/vim/commit/95f096030ed1a8afea028f2ea295d6f6a70f466f Signed-off-by: Michael Schupikov <michael@schupikov.de>
* | Merge branch 'master' into s-dash-stdinZyX2017-12-03
|\|
| * vim-patch:8.0.0164 (#7368)KunMing Xie2017-10-08
| | | | | | | | | | | | Problem: Outdated and misplaced comments. Solution: Fix the comments. https://github.com/vim/vim/commit/caa55b65c204946d160c1b743c5f8f3b506dc4d3
| * getchar.c: add TERM_FOCUS to MAP_HASH (#7271)Justin M. Keyes2017-09-16
| | | | | | | | | | vim-patch:8.0.1108 https://github.com/vim/vim/commit/69fbc9e1dab176f345719436cd89d854df0a2abd
| * lintJustin M. Keyes2017-07-08
| |
| * 'cpoptions': remove "<" flag; ignore <special>Justin M. Keyes2017-07-08
| | | | | | | | Closes #6937 "nvim_get_keymap output is unreliable"
| * getchar: Fix linter errorZyX2017-07-02
| |
| * *: Adjust usages of modified functionsZyX2017-07-02
| |
| * 'pastetoggle': Revert support for multi-key value (#6724)Matthew Malcomson2017-05-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reverts commit 337b6179df852350b52409fd3806e4b47ab2875b Closes #6716 at the expense of not being able to use a multi-key 'pastetoggle' manually. Multi-key 'pastetoggle' can still be used when inserting the entire option into the typebuffer at once (though the use here is questionable). Also remove those tests to do with waiting for the completion of 'pastetoggle' and mention in the documentation that 'pastetoggle' doesn't wait for timeout.
| * get_keymap API (#6236)TJ DeVries2017-05-25
| | | | | | | | | | | | | | * Add api function get keymap nvim_get_keymap(mode) nvim_buf_get_keymap(buffer, mode)
| * getchar: Eliminate two-iteration loopZyX2017-05-20
| |
| * Merge #6460 from ZyX-I/1476-changesJustin M. Keyes2017-05-08
| |\ | | | | | | Refactor functions which find character in a string
| | * strings: Remove vim_strbyteZyX2017-04-07
| | | | | | | | | | | | Ref #1476
| * | vim-patch:7.4.2263James McCoy2017-04-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: :filter does not work for many commands. Can only get matching messages. Solution: Make :filter work for :command, :map, :list, :number and :print. Make ":filter!" show non-matching lines. https://github.com/vim/vim/commit/d29459baa61819e59961804ed258efac5733ec70
| * | *: Add comment to all C filesZyX2017-04-19
| | |
| * | getchar: Fix if block indentationZyX2017-04-16
| | |
| * | ops: fix i<c-r> with multi-byte text (#6524)Björn Linse2017-04-15
| |/
| * 'pastetoggle': support value >1 char (#6421)Matthew Malcomson2017-04-01
| | | | | | | | | | | | | | | | | | | | If we `set pastetoggle=abcde`, and manually type it, then `vgetorpeek()` sees part of the option before it has all been inserted into the typebuffer. To signify this it sets `keylen = KEYLEN_PART_KEY`, but the condition about whether to return the current key from `vgetorpeek()` only checks for `keylen = KEYLEN_PART_MAP`. Add a check for `KEYLEN_PART_KEY` to account for the `'pastetoggle'` option.
| * eval: Move remaining get_tv_string* functions to eval/typval.cZyX2017-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().
| * refactor: Remove allow_keys global (#6346)Matthew Malcomson2017-03-25
| | | | | | | | | | | | * The allow_keys global is unused in nvim, remove it * clint
* | *: Fix linter errorsZyX2017-03-19
| |
* | fileio,main: Do not restart syscall at EAGAIN when reading for -sZyX2017-03-19
| |
* | getchar: Use fileio instead of fdopenZyX2017-03-19
|/ | | | | | Problem: as fileio is cached and reads blocks this is going to wait until either EOF or reading enough characters to fill rbuffer. This is not good when reading user input from stdin as script.
* Merge #6252 from jamessan/vim-7.4.2069Justin M. Keyes2017-03-15
|\ | | | | vim-patch:7.4.2069,7.4.2101,7.4.2222,7.4.2223
| * lintJames McCoy2017-03-11
| |
| * vim-patch:7.4.2223James McCoy2017-03-11
| | | | | | | | | | | | | | Problem: Buffer overflow when using latin1 character with feedkeys(). Solution: Check for an illegal character. Add a test. https://github.com/vim/vim/commit/d3c907b5d2b352482b580a0cf687cbbea4c19ea1
| * vim-patch:7.4.2222James McCoy2017-03-11
| | | | | | | | | | | | | | | | | | Problem: Sourcing a script where a character has 0x80 as a second byte does not work. (Filipe L B Correia) Solution: Turn 0x80 into K_SPECIAL KS_SPECIAL KE_FILLER. (Christian Brabandt, closes vim/vim#728) Add a test case. https://github.com/vim/vim/commit/6bff02eb530aa29aafa2cb5627399837be7a5dd5
* | coverity/155507: remove condition where both branches were identicalSander Bosma2017-03-12
|/ | | | | | | `keylen` was always set to 0 from both branches of an if-statement. This condition is removed, and the code is simplified based on the fact that `keylen` is always 0 in this code. Also updated the surrounding comments, some of which were outdated.
* Merge remote-tracking branch 'origin/master' into lambdaJames McCoy2017-02-22
|\
| * options: Remove 'esckeys' (#6138)Justin M. Keyes2017-02-18
| | | | | | This was never supported and it does not make sense for Nvim.
| * *: Fix linter errorsZyX2017-02-15
| |
| * *: Partial string handling refactoringZyX2017-02-15
| | | | | | | | | | | | | | | | Main points: - Replace `char_u` with `char` in some cases. - Remove `str[len] = NUL` hack in some cases when `str` may be considered `const`.
* | vim-patch:7.4.1727Michael Ennen2017-02-14
|/ | | | | | | | Problem: Cannot detect a crash in tests when caused by garbagecollect(). Solution: Add garbagecollect_for_testing(). Do not free a job if is still useful. https://github.com/vim/vim/commit/ebf7dfa6f121c82f97d2adca3d45fbaba9ad8f7e
* vim-patch:7.4.1897 (#5747)Shougo2016-12-10
| | | | | | Problem: Various typos, long lines and style mistakes. Solution: Fix the typos, wrap lines, improve style. https://github.com/vim/vim/commit/fd89d7ea81b18d32363456b16258174dc9e095dc