summaryrefslogtreecommitdiff
path: root/src/getchar.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.3749: error messages are everywherev8.2.3749Bram Moolenaar2021-12-051-1/+1
| | | | | Problem: Error messages are everywhere. Solution: Move more error messages to errors.h and adjust the names.
* patch 8.2.3643: header for source file is outdatedv8.2.3643zeertzjq2021-11-221-7/+3
| | | | | Problem: Header for source file is outdated. Solution: Make the header more accurate. (closes #9186)
* patch 8.2.3595: check for signed overflow might not work everywherev8.2.3595Bram Moolenaar2021-11-141-2/+6
| | | | | Problem: Check for signed overflow might not work everywhere. Solution: Limit to 32 bit int. (closes #9043, closes #9067)
* patch 8.2.3490: superfluous return statementsv8.2.3490=?UTF-8?q?Dundar=20G=C3=B6c?=2021-10-091-1/+0
| | | | | | Problem: Superfluous return statements. Solution: Remove superfluous return statements from void functions. (closes #8977)
* patch 8.2.3474: some places use "Vimscript" instead of "Vim script"v8.2.3474h-east2021-10-041-1/+1
| | | | | Problem: Some places use "Vimscript" instead of "Vim script". Solution: Consistently use "Vim script". (Hirohito Higashi, closes #8910)
* patch 8.2.3460: some type casts are not neededv8.2.3460=?UTF-8?q?Dundar=20G=C3=B6c?=2021-10-021-3/+3
| | | | | Problem: Some type casts are not needed. Solution: Remove unnecessary type casts. (closes #8934)
* patch 8.2.3320: some local functions are not staticv8.2.3320Yegappan Lakshmanan2021-08-091-1/+1
| | | | | | Problem: Some local functions are not static. Solution: Add "static". Move snprintf() related code to strings.c. (Yegappan Lakshmanan, closes #8734)
* patch 8.2.3229: Vim9: runtime and compile time type checks are not the samev8.2.3229Yegappan Lakshmanan2021-07-271-0/+3
| | | | | | Problem: Vim9: runtime and compile time type checks are not the same. Solution: Add more runtime type checks for builtin functions. (Yegappan Lakshmanan, closes #8646)
* patch 8.2.3069: error messages are spread outv8.2.3069Bram Moolenaar2021-06-271-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move some error messages to errors.h. Use clearer names.
* patch 8.2.2961: keys typed during a :normal command are discardedv8.2.2961Bram Moolenaar2021-06-071-2/+3
| | | | | Problem: Keys typed during a :normal command are discarded. Solution: Concatenate saved typeahead and typed kesy. (closes #8340)
* patch 8.2.2957: using getchar() in Vim9 script is problematicv8.2.2957Bram Moolenaar2021-06-071-3/+39
| | | | | Problem: Using getchar() in Vim9 script is problematic. Solution: Add getcharstr(). (closes #8343)
* patch 8.2.2833: two key command cancelled by moving mouse when using popupv8.2.2833Bram Moolenaar2021-05-051-1/+3
| | | | | | Problem: Two key command cancelled by moving mouse when using popup. (Sergey Vlasov) Solution: Ignore K_MOUSEMOVE in plain_vgetc().
* patch 8.2.2160: various typosv8.2.2160Bram Moolenaar2020-12-181-1/+1
| | | | | Problem: Various typos. Solution: Fix spelling mistakes. (closes #7494)
* patch 8.2.2084: CTRL-V U doesn't work to enter a Unicode characterv8.2.2084Bram Moolenaar2020-12-031-5/+4
| | | | | | Problem: CTRL-V U doesn't work to enter a Unicode character when modifyOtherKeys is effective. (Ken Takata) Solution: Add a flag to get_literal() for the shift key. (closes #7413)
* patch 8.2.2062: <Cmd> does not handle CTRL-Vv8.2.2062Bram Moolenaar2020-11-281-0/+8
| | | | | Problem: <Cmd> does not handle CTRL-V. Solution: Call get_literal() after encountering CTRL-V. (closes #7387)
* patch 8.2.2005: redoing a mapping with <Cmd> doesn't work properlyv8.2.2005Bram Moolenaar2020-11-181-5/+1
| | | | | | Problem: Redoing a mapping with <Cmd> doesn't work properly. Solution: Fill the redo buffer. Use "<SNR>" instead of a key code. (closes #7282)
* patch 8.2.1991: Coverity warns for not using the ga_grow() return valuev8.2.1991Bram Moolenaar2020-11-151-1/+5
| | | | | Problem: Coverity warns for not using the ga_grow() return value. Solution: Bail out if ga_grow() fails. (Yegappan Lakshmanan, closes #7303)
* patch 8.2.1978: making a mapping work in all modes is complicatedv8.2.1978Bram Moolenaar2020-11-121-0/+93
| | | | | | Problem: Making a mapping work in all modes is complicated. Solution: Add the <Cmd> special key. (Yegappan Lakshmanan, closes #7282, closes 4784, based on patch by Bjorn Linse)
* patch 8.2.1948: GUI: crash when handling message while closing a windowv8.2.1948Bram Moolenaar2020-11-041-1/+2
| | | | | | Problem: GUI: crash when handling message while closing a window. (Srinath Avadhanula) Solution: Don't handle message while closing a window. (closes #7250)
* patch 8.2.1769: popup filter interferes with using :normal to move the cursorv8.2.1769Bram Moolenaar2020-09-281-4/+3
| | | | | | Problem: A popup filter interferes with using :normal to move the cursor in a popup. Solution: Do not invoke the filter when ex_normal_busy is set.
* patch 8.2.1729: endless loop when ":normal" feeds popup window filterv8.2.1729Bram Moolenaar2020-09-231-1/+5
| | | | | Problem: Endless loop when ":normal" feeds popup window filter. Solution: Add the ex_normal_busy_done flag.
* patch 8.2.1608: Vim9: getchar() test fails with GUIv8.2.1608Bram Moolenaar2020-09-051-3/+5
| | | | | Problem: Vim9: getchar() test fails with GUI. Solution: Avoid that getchar(0) gets stuck on K_IGNORE.
* patch 8.2.1603: Vim9: cannot use "true" with getchar()v8.2.1603Bram Moolenaar2020-09-051-1/+1
| | | | | Problem: Vim9: cannot use "true" with getchar(). Solution: use tv_get_bool_chk(). (closes #6874)
* patch 8.2.1377: triggering the ATTENTION prompt causes typeahead mess upv8.2.1377Bram Moolenaar2020-08-051-0/+2
| | | | | Problem: Triggering the ATTENTION prompt causes typeahead to be messed up. Solution: Increment tb_change_cnt. (closes #6541)
* patch 8.2.1166: once mouse move events are enabled getchar() returns themv8.2.1166Bram Moolenaar2020-07-091-2/+2
| | | | | Problem: Once mouse move events are enabled getchar() returns them. Solution: Ignore K_MOUSEMOVE in getchar(). (closes #6424)
* patch 8.2.0952: no simple way to interrupt Vimv8.2.0952Bram Moolenaar2020-06-101-0/+7
| | | | | | Problem: No simple way to interrupt Vim. Solution: Add the SigUSR1 autocommand, triggered by SIGUSR1. (Jacob Hayes, closes #1718)
* patch 8.2.0919: merging modifier for modifyOtherKeys is done twicev8.2.0919Bram Moolenaar2020-06-071-11/+28
| | | | | Problem: Merging modifier for modifyOtherKeys is done twice. Solution: Remove the merging done in vgetc().
* patch 8.2.0916: mapping with partly modifyOtherKeys code does not workv8.2.0916Bram Moolenaar2020-06-061-7/+50
| | | | | | Problem: Mapping with partly modifyOtherKeys code does not work. Solution: If there is no mapping with a separate modifier include the modifier in the key and then try mapping again. (closes #6200)
* patch 8.2.0904: assuming modifyOtherKeys for rhs of mappingv8.2.0904Bram Moolenaar2020-06-041-1/+2
| | | | | Problem: Assuming modifyOtherKeys for rhs of mapping. Solution: Ignore seenModifyOtherKeys for mapped characters. (closes #6200)
* patch 8.2.0851: can't distinguish <M-a> from accented "a" in the GUIv8.2.0851Bram Moolenaar2020-05-301-5/+15
| | | | | Problem: Can't distinguish <M-a> from accented "a" in the GUI. Solution: Use another way to make mapping <C-bslash> work. (closes #6163)
* patch 8.2.0839: dropping modifier when putting a character back in typeaheadv8.2.0839Bram Moolenaar2020-05-291-8/+28
| | | | | Problem: Dropping modifier when putting a character back in typeahead. Solution: Add modifier to ins_char_typebuf(). (closes #6158)
* patch 8.2.0835: Motif: mapping <C-bslash> still doesn't workv8.2.0835Bram Moolenaar2020-05-281-1/+10
| | | | | | Problem: Motif: mapping <C-bslash> still doesn't work. Solution: Accept CSI for K_SPECIAL. Do not apply CTRL to the character early. (closes #6150)
* patch 8.2.0694: Haiku: channel and terminal do not workv8.2.0694Bram Moolenaar2020-05-031-1/+1
| | | | | | Problem: Haiku: channel and terminal do not work. Solution: Close files when the job has finished. (Ozaki Kiichi, closes #6039)
* patch 8.2.0674: some source files are too bigv8.2.0674Bram Moolenaar2020-05-011-0/+40
| | | | | | Problem: Some source files are too big. Solution: Move text formatting functions to a new file. (Yegappan Lakshmanan, closes #6021)
* patch 8.2.0514: several global functions are used in only one filev8.2.0514Bram Moolenaar2020-04-051-1/+1
| | | | | Problem: Several global functions are used in only one file. Solution: Make the functions static. (Yegappan Lakshmanan, closes #5884)
* patch 8.2.0370: the typebuf_was_filled flag is sometimes not resetv8.2.0370Bram Moolenaar2020-03-111-0/+7
| | | | | | | Problem: The typebuf_was_filled flag is sometimes not reset, which may cause a hang. Solution: Make sure typebuf_was_filled is reset when the typeahead buffer is empty.
* patch 8.2.0356: MS-Windows: feedkeys() with VIMDLL cannot handle CSIv8.2.0356Bram Moolenaar2020-03-041-21/+13
| | | | | | Problem: MS-Windows: feedkeys() with VIMDLL cannot handle CSI correctly. Solution: Modify mch_inchar() to encode CSI bytes. (Ozaki Kiichi, Ken Takata, closes #5726)
* patch 8.2.0274: hang with combination of feedkeys(), Ex mode and :globalv8.2.0274Bram Moolenaar2020-02-181-0/+4
| | | | | | Problem: Hang with combination of feedkeys(), Ex mode and :global. (Yegappan Lakshmanan) Solution: Add the pending_exmode_active flag.
* patch 8.2.0156: various typos in source files and testsv8.2.0156Bram Moolenaar2020-01-261-1/+1
| | | | | Problem: Various typos in source files and tests. Solution: Fix the typos. (Emir Sari, closes #5532)
* patch 8.1.2380: using old C style commentsv8.1.2380Bram Moolenaar2019-12-011-188/+187
| | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate.
* patch 8.1.2371: FEAT_TEXT_PROP is a confusing namev8.1.2371Bram Moolenaar2019-11-301-4/+4
| | | | | Problem: FEAT_TEXT_PROP is a confusing name. Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes #5291)
* patch 8.1.2350: other text for CTRL-V in Insert mode with modifyOtherKeysv8.1.2350Bram Moolenaar2019-11-261-22/+33
| | | | | | | Problem: Other text for CTRL-V in Insert mode with modifyOtherKeys. Solution: Convert the Escape sequence back to key as if modifyOtherKeys is not set, and use CTRL-SHIFT-V to get the Escape sequence itself. (closes #5254)
* patch 8.1.2336: when an expr mapping moves the cursor it is not restoredv8.1.2336Bram Moolenaar2019-11-221-0/+7
| | | | | Problem: When an expr mapping moves the cursor it is not restored. Solution: Position the cursor after an expr mapping. (closes #5256)
* patch 8.1.2333: with modifyOtherKeys CTRL-^ doesn't workv8.1.2333Bram Moolenaar2019-11-211-5/+12
| | | | | Problem: With modifyOtherKeys CTRL-^ doesn't work. Solution: Handle the exception.
* patch 8.1.2243: typos in commentsv8.1.2243Bram Moolenaar2019-11-021-1/+1
| | | | | | Problem: Typos in comments. Solution: Fix the typos. (Dominique Pelle, closes #5160) Also adjust formatting a bit.
* patch 8.1.2200: crash when memory allocation failsv8.1.2200Bram Moolenaar2019-10-221-2/+10
| | | | | | Problem: Crash when memory allocation fails. Solution: Check for NULL curwin and curbuf. (Christian Brabandt, closes #4839)
* patch 8.1.2191: when using modifyOtherKeys CTRL-X mode may not workv8.1.2191Bram Moolenaar2019-10-201-1/+19
| | | | | Problem: When using modifyOtherKeys CTRL-X mode may not work. Solution: Recognize a control character also in the form with a modifier.
* patch 8.1.2171: mouse support not always availablev8.1.2171Bram Moolenaar2019-10-171-10/+2
| | | | | | Problem: Mouse support not always available. Solution: Enable mouse support also in tiny version. Do not define FEAT_MOUSE_XTERM on MS-Windows (didn't really work).
* patch 8.1.2145: cannot map <C-H> when modifyOtherKeys is enabledv8.1.2145Bram Moolenaar2019-10-131-2/+3
| | | | | | Problem: Cannot map <C-H> when modifyOtherKeys is enabled. Solution: Add the <C-H> mapping twice, both with modifier and as 0x08. Use only the first one when modifyOtherKeys has been detected.
* patch 8.1.2135: with modifyOtherKeys Alt-a does not work properlyv8.1.2135Bram Moolenaar2019-10-101-19/+19
| | | | | Problem: With modifyOtherKeys Alt-a does not work properly. Solution: Remove the ALT modifier. Get multi-byte after applying ALT.