summaryrefslogtreecommitdiff
path: root/src/ui.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.1.1419: listener callbacks may be called recursivelyv8.1.1419Bram Moolenaar2019-05-291-1/+1
| | | | | Problem: Listener callbacks may be called recursively. Solution: Set "updating_screen" while listener callbacks are invoked.
* patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar2019-05-281-1/+1
| | | | | | Problem: Alloc() returning "char_u *" causes a lot of type casts. Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to check the simple allocations.
* patch 8.1.1386: unessesary type casts for lalloc()v8.1.1386Bram Moolenaar2019-05-241-3/+3
| | | | | Problem: Unessesary type casts for lalloc(). Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
* patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exev8.1.1230Bram Moolenaar2019-04-281-1/+1
| | | | | | Problem: A lot of code is shared between vim.exe and gvim.exe. Solution: Optionally put the shared code in vim.dll. (Ken Takata, closes #4287)
* patch 8.1.1131: getwinpos() does not work in the MS-Windows consolev8.1.1131Bram Moolenaar2019-04-061-2/+7
| | | | | Problem: getwinpos() does not work in the MS-Windows console. Solution: Implement getwinpos().
* patch 8.1.1127: getwinpos() doesn't work in terminal on MS-Windows consolev8.1.1127Bram Moolenaar2019-04-061-2/+3
| | | | | Problem: getwinpos() doesn't work in terminal on MS-Windows console. Solution: Adjust #ifdefs. Disable test for MS-Windows console.
* patch 8.1.1126: build failure with +terminal but without tgetentv8.1.1126Bram Moolenaar2019-04-061-2/+3
| | | | | Problem: Build failure with +terminal but without tgetent. Solution: Adjust #ifdef.
* patch 8.1.1125: libvterm does not handle the window position reportv8.1.1125Bram Moolenaar2019-04-061-0/+21
| | | | | | Problem: Libvterm does not handle the window position report. Solution: Let libvterm call the fallback CSI handler when not handling CSI sequence. Handle the window position report in Vim.
* patch 8.1.0989: various small code uglinessv8.1.0989Bram Moolenaar2019-03-021-1/+1
| | | | | | Problem: Various small code ugliness. Solution: Remove pointless NULL checks. Fix function calls. Fix typos. (Dominique Pelle, closes #4060)
* patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar2019-02-171-4/+4
| | | | | | | Problem: Macros for MS-Windows are inconsistent, using "32", "3264 and others. Solution: Use MSWIN for all MS-Windows builds. Use FEAT_GUI_MSWIN for the GUI build. (Hirohito Higashi, closes #3932)
* patch 8.1.0840: getchar(0) never returns a character in the terminalv8.1.0840Bram Moolenaar2019-01-281-1/+7
| | | | | Problem: getchar(0) never returns a character in the terminal. Solution: Call wait_func() at least once.
* patch 8.1.0835: GUI build fails on MS-Windowsv8.1.0835Bram Moolenaar2019-01-271-1/+1
| | | | | Problem: GUI build fails on MS-Windows. Solution: Adjust #ifdef.
* patch 8.1.0834: GUI may wait too long before dealing with messagesv8.1.0834Bram Moolenaar2019-01-271-0/+212
| | | | | | | Problem: GUI may wait too long before dealing with messages. Returning early may cause a mapping to time out. Solution: Use the waiting loop from Unix also for the GUI. (closes #3817, closes #3824)
* patch 8.1.0826: too many #ifdefsv8.1.0826Bram Moolenaar2019-01-261-2/+0
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
* patch 8.1.0810: too many #ifdefsv8.1.0810Bram Moolenaar2019-01-241-102/+12
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 4.
* patch 8.1.0785: depending on the configuration some functions are unusedv8.1.0785Bram Moolenaar2019-01-201-0/+5
| | | | | | Problem: Depending on the configuration some functions are unused. Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle, closes #3822)
* patch 8.1.0779: argument for message functions is inconsistentv8.1.0779Bram Moolenaar2019-01-191-2/+2
| | | | | Problem: Argument for message functions is inconsistent. Solution: Make first argument to msg() "char *".
* patch 8.1.0763: nobody is using the Sun Workshop supportv8.1.0763Bram Moolenaar2019-01-171-3/+2
| | | | | Problem: Nobody is using the Sun Workshop support. Solution: Remove the Workshop support.
* patch 8.1.0761: default value for brief_wait is wrongv8.1.0761Bram Moolenaar2019-01-171-1/+1
| | | | | Problem: Default value for brief_wait is wrong. Solution: Make the default FALSE. (Ozaki Kiichi, closes #3812, closes #3799)
* patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-1/+1
| | | | | | | | Problem: Giving error messages is not flexible. Solution: Add semsg(). Change argument from "char_u *" to "char *", also for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes #3302) Also make emsg() accept a "char *" argument. Get rid of an enormous number of type casts.
* patch 8.1.0710: when using timers may wait for job exit quite longv8.1.0710Bram Moolenaar2019-01-091-8/+28
| | | | | | Problem: When using timers may wait for job exit quite long. Solution: Return from ui_wait_for_chars_or_timer() when a job or channel needs to be handled. (Ozaki Kiichi, closes #3783)
* patch 8.1.0548: crash when job callback unloads a bufferv8.1.0548Bram Moolenaar2018-11-261-2/+1
| | | | | Problem: Crash when job callback unloads a buffer. (James McCoy) Solution: Don't round up the wait time to 10 msec in ui_inchar().
* patch 8.1.0537: ui_breakcheck() may be called recursivelyv8.1.0537Bram Moolenaar2018-11-201-2/+12
| | | | | Problem: ui_breakcheck() may be called recursively, which doesn't work. Solution: When called recursively, just return. (James McCoy, closes #3617)
* patch 8.1.0443: unnecessary static function prototypesv8.1.0443Bram Moolenaar2018-09-301-3/+0
| | | | | Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
* patch 8.1.0377: xdiff doesn't use the Vim memory allocation functionsv8.1.0377Bram Moolenaar2018-09-131-4/+4
| | | | | | Problem: Xdiff doesn't use the Vim memory allocation functions. Solution: Change the xdl_ defines. Check for out-of-memory. Rename "ignored" to "vim_ignored".
* patch 8.0.1815: crash with terminal window and with 'lazyredraw' setv8.0.1815Bram Moolenaar2018-05-111-1/+4
| | | | | | Problem: Still a crash with terminal window and with 'lazyredraw' set. (Antoine) Solution: Do not wipe out the buffer when updating the screen.
* patch 8.0.1809: various typosv8.0.1809Bram Moolenaar2018-05-101-1/+1
| | | | | Problem: Various typos. Solution: Correct the mistakes, change "cursur" to "cursor". (closes #2887)
* patch 8.0.1760: wrong number of arguments to vms_read()v8.0.1760Bram Moolenaar2018-04-241-1/+1
| | | | | Problem: Wrong number of arguments to vms_read(). Solution: Drop the first argument. (Ozaki Kiichi)
* patch 8.0.1751: #ifdef causes bad highlightingv8.0.1751Bram Moolenaar2018-04-241-10/+7
| | | | | Problem: #ifdef causes bad highlighting. Solution: Move code around. (Ozaki Kiichi, closes #2731)
* patch 8.0.1598: cannot select text in a terminal with the mousev8.0.1598Bram Moolenaar2018-03-111-2/+9
| | | | | | | Problem: Cannot select text in a terminal with the mouse. Solution: When a job in a terminal is not consuming mouse events, use them for modeless selection. Also stop Insert mode when clicking in a terminal window.
* patch 8.0.1564: too many #ifdefsv8.0.1564Bram Moolenaar2018-03-041-3/+1
| | | | | | Problem: Too many #ifdefs. Solution: Graduate the +autocmd feature. Takes away 450 #ifdefs and increases code size of tiny Vim by only 40 Kbyte.
* patch 8.0.1560: build failure without GUI on MS-Windowsv8.0.1560Bram Moolenaar2018-03-031-1/+2
| | | | | Problem: Build failure without GUI on MS-Windows. Solution: Adjust #ifdef for vcol2col().
* patch 8.0.1559: build failure without GUIv8.0.1559Bram Moolenaar2018-03-031-1/+2
| | | | | Problem: Build failure without GUI. Solution: Adjust #ifdef for get_fpos_of_mouse().
* patch 8.0.1496: clearing a pointer takes two linesv8.0.1496Bram Moolenaar2018-02-101-6/+2
| | | | | | Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629)
* patch 8.0.1449: slow redrawing with DirectXv8.0.1449Bram Moolenaar2018-01-311-10/+3
| | | | | | Problem: Slow redrawing with DirectX. Solution: Avoid calling gui_mch_flush() unnecessarily, especially when updating the cursor. (Ken Takata, closes #2560)
* patch 8.0.1405: duplicated code for getting a typed characterv8.0.1405Bram Moolenaar2017-12-181-8/+49
| | | | | | | Problem: Duplicated code for getting a typed character. CursorHold is called too often in the GUI. (lilydjwg) Solution: Refactor code to move code up from mch_inchar(). Don't fire CursorHold if feedkeys() was used. (closes #2451)
* patch 8.0.1338: USE_IM_CONTROL is confusing and incompletev8.0.1338Bram Moolenaar2017-11-251-1/+1
| | | | | Problem: USE_IM_CONTROL is confusing and incomplete. Solution: Just use FEAT_MBYTE. Call 'imactivatefunc' also without GUI.
* patch 8.0.1312: balloon_show() only works in terminal when compiled with GUIv8.0.1312Bram Moolenaar2017-11-181-0/+4
| | | | | | Problem: balloon_show() only works in terminal when compiled with the GUI. Solution: Add FEAT_BEVAL_GUI and refactor to move common code out of the GUI specific file.
* patch 8.0.1292: quick clicks in the WinBar start Visual modev8.0.1292Bram Moolenaar2017-11-121-0/+15
| | | | | Problem: Quick clicks in the WinBar start Visual mode. Solution: Use a double click in the WinBar like a normal click.
* patch 8.0.1236: Mac features are confusingv8.0.1236Bram Moolenaar2017-10-281-2/+2
| | | | | | Problem: Mac features are confusing. Solution: Make feature names more consistent, add "osxdarwin". Rename feature flags, cleanup Mac code. (Kazunobu Kuriyama, closes #2178)
* patch 8.0.1138: click in window toolbar starts Visual modev8.0.1138Bram Moolenaar2017-09-231-1/+13
| | | | | Problem: Click in window toolbar starts Visual mode. Solution: Add the MOUSE_WINBAR flag.
* patch 8.0.1136: W_WIDTH() is always the samev8.0.1136Bram Moolenaar2017-09-221-4/+4
| | | | | Problem: W_WIDTH() is always the same. Solution: Expand the macro.
* patch 8.0.1135: W_WINCOL() is always the samev8.0.1135Bram Moolenaar2017-09-221-1/+1
| | | | | Problem: W_WINCOL() is always the same. Solution: Expand the macro.
* patch 8.0.1123: cannot define a toolbar for a windowv8.0.1123Bram Moolenaar2017-09-171-2/+18
| | | | | Problem: Cannot define a toolbar for a window. Solution: Add a window-local toolbar.
* patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefsv8.0.1118Bram Moolenaar2017-09-161-33/+2
| | | | | | Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always enabled and only adds 7% to the binary size of the tiny build. Solution: Graduate FEAT_WINDOWS.
* patch 8.0.1048: no test for what 8.0.1020 fixesv8.0.1048Bram Moolenaar2017-09-031-15/+0
| | | | | Problem: No test for what 8.0.1020 fixes. Solution: Add test_feedinput(). Add a test. (Ozaki Kiichi, closes #2046)
* patch 8.0.0948: crash if timer closes window while dragging status linev8.0.0948Bram Moolenaar2017-08-161-1/+12
| | | | | | Problem: Crash if timer closes window while dragging status line. Solution: Check if the window still exists. (Yasuhiro Matsumoto, closes #1979)
* patch 8.0.0918: cannot get terminal window cursor shape or attributesv8.0.0918Bram Moolenaar2017-08-121-2/+8
| | | | | Problem: Cannot get terminal window cursor shape or attributes. Solution: Support cursor shape, attributes and color.
* patch 8.0.0737: crash when X11 selection is very bigv8.0.0737Bram Moolenaar2017-07-191-30/+39
| | | | | | Problem: Crash when X11 selection is very big. Solution: Use static items instead of allocating them. Add callbacks. (Ozaki Kiichi)
* patch 8.0.0522: Win32: when 'clipboard' is "unnamed" yyp does not workv8.0.0522Bram Moolenaar2017-03-291-3/+13
| | | | | | | Problem: MS-Windows: when 'clipboard' is "unnamed" yyp does not work in a :global command. Solution: When setting the clipboard was postponed, do not clear the register.