summaryrefslogtreecommitdiff
path: root/src/getchar.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 9.0.0340: the 'cmdheight' zero support causes too much troublev9.0.0340Bram Moolenaar2022-08-311-4/+0
| | | | | Problem: The 'cmdheight' zero support causes too much trouble. Solution: Revert support for 'cmdheight' being zero.
* patch 9.0.0318: clearing screen causes flickerv9.0.0318Bram Moolenaar2022-08-291-1/+1
| | | | | Problem: Clearing screen causes flicker. Solution: Do not clear but redraw in more cases. Add () to "wait_return".
* patch 9.0.0234: cannot make difference between :normal end and argument charv9.0.0234Bram Moolenaar2022-08-211-0/+7
| | | | | | Problem: Cannot make difference between the end of :normal and a character in its argument. Solution: Add the "typebuf_was_empty" flag. (closes #10950)
* patch 9.0.0206: redraw flags are not named specificallyv9.0.0206Bram Moolenaar2022-08-141-1/+1
| | | | | Problem: Redraw flags are not named specifically. Solution: Prefix "UPD_" to the flags, for UPDate_screen().
* patch 9.0.0114: the command line takes up space even when not usedv9.0.0114Shougo Matsushita2022-07-301-0/+4
| | | | | | Problem: The command line takes up space even when not used. Solution: Allow for 'cmdheight' to be set to zero. (Shougo Matsushita, closes #10675, closes #940)
* patch 9.0.0067: cannot show virtual textv9.0.0067Bram Moolenaar2022-07-251-9/+15
| | | | | Problem: Cannot show virtual text. Solution: Initial changes for virtual text support, using text properties.
* patch 9.0.0059: test file has wrong namev9.0.0059zeertzjq2022-07-231-1/+1
| | | | | Problem: Test file has wrong name. Solution: Rename the file. Various small fixes. (closes #10674)
* patch 9.0.0044: typos in comments, wrapping linesv9.0.0044Bram Moolenaar2022-07-061-2/+3
| | | | | Problem: Typos in comments, wrapping lines. Solution: Adjust comments. Wrap lines.
* patch 9.0.0024: may access part of typeahead buf that isn't filledv9.0.0024Bram Moolenaar2022-07-021-1/+2
| | | | | Problem: May access part of typeahead buf that isn't filled. Solution: Check length of typeahead.
* patch 8.2.5076: unnecessary codev8.2.5076zeertzjq2022-06-101-24/+3
| | | | | Problem: Unnecessary code. Solution: Remove code and replace with function call. (closes #10552)
* patch 8.2.5064: no test for what 8.1.0052 fixesv8.2.5064zeertzjq2022-06-061-2/+2
| | | | | Problem: No test for what 8.1.0052 fixes. Solution: Add a test. (closes #10531)
* patch 8.2.5058: input() does not handle composing characters properlyv8.2.5058zeertzjq2022-06-051-1/+1
| | | | | | Problem: input() does not handle composing characters properly. Solution: Use mb_cptr2char_adv() instead of mb_ptr2char_adv(). (closes #10527)
* patch 8.2.4911: the mode #defines are not clearly namedv8.2.4911Bram Moolenaar2022-05-071-31/+33
| | | | | Problem: The mode #defines are not clearly named. Solution: Prepend MODE_. Renumber them to put the mapped modes first.
* patch 8.2.4848: local completion with mappings and simplification not workingv8.2.4848zeertzjq2022-04-301-6/+5
| | | | | | Problem: Local completion with mappings and simplification not working. Solution: Fix local completion <C-N>/<C-P> mappings not ignored if keys are not simplified. (closes #10323)
* patch 8.2.4846: termcodes test failsv8.2.4846zeertzjq2022-04-291-1/+1
| | | | | Problem: Termcodes test fails. Solution: use CTRL-SHIFT-V to insert an unsimplified key. (closes #10316)
* patch 8.2.4844: <C-S-I> is simplified to <S-Tab>v8.2.4844zeertzjq2022-04-291-1/+1
| | | | | Problem: <C-S-I> is simplified to <S-Tab>. Solution: Do not simplify CTRL if there is also SHIFT. (closes #10313)
* patch 8.2.4837: modifiers not simplified when timed outv8.2.4837zeertzjq2022-04-281-5/+7
| | | | | | Problem: Modifiers not simplified when timed out or using feedkeys() with 'n" flag. Solution: Adjust how mapped flag and timeout are used. (closes #10305)
* patch 8.2.4833: failure of mapping not checked forv8.2.4833zeertzjq2022-04-271-2/+16
| | | | | Problem: Failure of mapping not checked for. Solution: Check return value of ins_typebuf(). (closes #10299)
* patch 8.2.4832: passing zero instead of NULL to a pointer argumentv8.2.4832zeertzjq2022-04-261-2/+2
| | | | | Problem: Passing zero instead of NULL to a pointer argument. Solution: Use NULL. (closes #10296)
* patch 8.2.4829: a key may be simplified to NULv8.2.4829zeertzjq2022-04-261-1/+5
| | | | | | Problem: A key may be simplified to NUL. Solution: Use K_ZERO instead. Use macros instead of hard coded values. (closes #10290)
* patch 8.2.4753: error from setting an option is silently ignoredv8.2.4753Bram Moolenaar2022-04-151-1/+2
| | | | | Problem: Error from setting an option is silently ignored. Solution: Handle option value errors better. Fix uses of N_().
* patch 8.2.4722: ending recording with mapping records too muchv8.2.4722zeertzjq2022-04-091-1/+9
| | | | | | Problem: When a recording is ended with a mapped key that key is also recorded. Solution: Remember the previous last_recorded_len. (closes #10122)
* patch 8.2.4705: jump list marker disappearsv8.2.4705zeertzjq2022-04-071-4/+25
| | | | | Problem: Jump list marker disappears. Solution: Reset reg_executing later. (closes #10111, closes #10100)
* patch 8.2.4692: no test for what 8.2.4691 fixesv8.2.4692zeertzjq2022-04-051-15/+13
| | | | | Problem: No test for what 8.2.4691 fixes. Solution: Add a test. Use a more generic sotlution. (closes #10090)
* patch 8.2.4691: solution for <Cmd> in a mapping causes troublev8.2.4691Bram Moolenaar2022-04-041-23/+29
| | | | | | Problem: Solution for <Cmd> in a mapping causes trouble. Solution: Use another solution: put back CTRL-O after reading the <Cmd> sequence.
* patch 8.2.4689: using <Cmd> in a mapping does not work for mouse keysv8.2.4689Bram Moolenaar2022-04-041-16/+23
| | | | | | | Problem: Using <Cmd> in a mapping does not work for mouse keys in Insert mode. (Sergey Vlasov) Solution: When reading the <Cmd> argument do not use the stuff buffer. (closes #10080)
* patch 8.2.4588: mapping with key after other matching mapping does not workv8.2.4588Bram Moolenaar2022-03-181-2/+10
| | | | | Problem: Mapping with key code after other matching mapping does not work. Solution: Change ">" to ">=". (closes #9903)
* patch 8.2.4551: when mapping <Esc> terminal codes are not recognizedv8.2.4551Bram Moolenaar2022-03-121-1/+6
| | | | | | | Problem: When mapping <Esc> terminal codes are not recognized. Solution: Specifically recognize a mapping with just <Esc> and check for terminal codes even though there is no partial mapping. (closes #9903)
* patch 8.2.4504: when there is a partially matching map full map may not workv8.2.4504Bram Moolenaar2022-03-041-2/+2
| | | | | | | Problem: When there is a partially matching map and modifyOtherKeys is active a full map may not work. Solution: Only simplify modifiers when there is no matching mapping. (closes #8792)
* patch 8.2.4502: in the GUI a modifier is not recognized after CTRL-Xv8.2.4502Bram Moolenaar2022-03-041-1/+1
| | | | | | | Problem: In the GUI a modifier is not recognized for the key typed after CTRL-X, which may result in a mapping to be used. (Daniel Steinberg) Solution: Recognize a modifier starting with CSI. (closes #9889)
* patch 8.2.4498: using <Plug> with "noremap" does not workv8.2.4498Bram Moolenaar2022-03-031-2/+9
| | | | | Problem: Using <Plug> with "noremap" does not work. Solution: Always remap <Plug>. (closes #9879, closes #9789)
* patch 8.2.4427: getchar() may return modifiers if no character is availablev8.2.4427zeertzjq2022-02-201-1/+1
| | | | | Problem: getchar() may return modifiers if no character is available. Solution: Do not process modifiers when there is no character. (closes #9806)
* patch 8.2.4402: missing parenthesis may cause unexpected problemsv8.2.4402kylo2522022-02-161-1/+1
| | | | | Problem: Missing parenthesis may cause unexpected problems. Solution: Add more parenthesis is macros. (closes #9788)
* patch 8.2.4400: MS-Windows: cannot use the mouse in the console with VIMDLLv8.2.4400zeertzjq2022-02-161-13/+7
| | | | | | Problem: MS-Windows: cannot use the mouse in the console with VIMDLL. Solution: use add_char2buf() instead of fix_input_buffer(). (closes #9784, closes #9769)
* patch 8.2.4394: UTF8 select mode test fails on MS-Windowsv8.2.4394Bram Moolenaar2022-02-151-4/+1
| | | | | Problem: UTF8 select mode test fails on MS-Windows. Solution: Revert the #ifdef change.
* patch 8.2.4392: MS-Windows with VIMDLL: Escaping CSI is wrongv8.2.4392Bram Moolenaar2022-02-151-1/+4
| | | | | Problem: MS-Windows with VIMDLL: Escaping CSI is wrong. Solution: Put back #ifdef. (Ken Takata, closes #9769)
* patch 8.2.4338: an error from an expression mapping messes up the displayv8.2.4338Bram Moolenaar2022-02-101-0/+24
| | | | | | Problem: An error from an expression mapping messes up the display. Solution: When the expression results in an empty string return K_IGNORE. In cmdline mode redraw the command line. (closes #9726)
* patch 8.2.4289: warnings reported by MSVCv8.2.4289K.Takata2022-02-031-6/+6
| | | | | Problem: Warnings reported by MSVC. Solution: Rename variables and other fixes. (Ken Takata, closes #9689)
* patch 8.2.4273: the EBCDIC support is outdatedv8.2.4273Bram Moolenaar2022-01-311-15/+3
| | | | | Problem: The EBCDIC support is outdated. Solution: Remove the EBCDIC support.
* patch 8.2.4236: accessing freed memoryv8.2.4236Bram Moolenaar2022-01-271-0/+1
| | | | | Problem: Accessing freed memory. Solution: Set the bh_curr pointer to NULL.
* patch 8.2.4235: invalid check for NULL pointerv8.2.4235Bram Moolenaar2022-01-271-1/+1
| | | | | Problem: Invalid check for NULL pointer. Solution: Remove the check.
* patch 8.2.4233: crash when recording and using Select modev8.2.4233Bram Moolenaar2022-01-271-1/+4
| | | | | | Problem: Crash when recording and using Select mode. Solution: When deleting the last recorded character check there is something to delete.
* patch 8.2.4148: deleting any mapping may cause <ScritpCmd> to failv8.2.4148Bram Moolenaar2022-01-191-2/+3
| | | | | | | Problem: Deleting any mapping may cause <ScritpCmd> to not set the script context. Solution: Only reset last_used_map if it is the deleted mapping. (closes #9568)
* patch 8.2.4107: script context not restored after using <ScriptCmd>v8.2.4107Bram Moolenaar2022-01-161-3/+3
| | | | | | Problem: Script context not restored after using <ScriptCmd>. Solution: Also restore context when not in a script. (closes #9536) Add the 'c' flag to feedkeys() to be able to test this.
* patch 8.2.4101: warning for unused argument in tiny versionv8.2.4101Bram Moolenaar2022-01-151-1/+1
| | | | | Problem: Warning for unused argument in tiny version. Solution: Add "UNUSED".
* patch 8.2.4099: Vim9: cannot use Vim9 syntax in mappingv8.2.4099Bram Moolenaar2022-01-151-2/+39
| | | | | Problem: Vim9: cannot use Vim9 syntax in mapping. Solution: Add <ScriptCmd> to use the script context for a command.
* patch 8.2.4059: Vim9: an expression of a map cannot access script-local itemsv8.2.4059Bram Moolenaar2022-01-111-5/+1
| | | | | | Problem: Vim9: an expression of a map cannot access script-local items. (Maxim Kim) Solution: Use the script ID of where the map was defined.
* patch 8.2.4002: first char typed in Select mode can be wrongv8.2.4002zeertzjq2022-01-041-5/+13
| | | | | Problem: First char typed in Select mode can be wrong. Solution: Escape special bytes in the input buffer. (closes #9469)
* patch 8.2.4001: insert complete code uses global variablesv8.2.4001Yegappan Lakshmanan2022-01-041-1/+1
| | | | | | Problem: Insert complete code uses global variables. Solution: Make variables local to the file and use accessor functions. (Yegappan Lakshmanan, closes #9470)
* patch 8.2.3993: when recording a change in Select mode char appears twicev8.2.3993Bram Moolenaar2022-01-031-9/+46
| | | | | | | Problem: When recording a change in Select mode the first typed character appears twice. Solution: When putting the character back into typeahead remove it from recorded characters. (closes #9462)