summaryrefslogtreecommitdiff
path: root/src/gui.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.1.1702: compiler warning for uninitialized variablev8.1.1702Bram Moolenaar2019-07-161-1/+1
| | | | | Problem: Compiler warning for uninitialized variable. Solution: Initialize it. (Christian Brabandt)
* patch 8.1.1670: sign column not always properly alignedv8.1.1670Bram Moolenaar2019-07-121-3/+6
| | | | | | Problem: Sign column not always properly aligned. Solution: Use "col" only after it was calculated. (Yee Cheng Chin, closes #4649)
* patch 8.1.1652: GUI: popup window doesn't close on mouse movementv8.1.1652Bram Moolenaar2019-07-081-7/+25
| | | | | Problem: GUI: popup window doesn't close on mouse movement. (Paul Jolly) Solution: Generate mouse-move events when a popup window is visible.
* patch 8.1.1643: sign placement is wrong when 'foldcolumn' is setv8.1.1643Bram Moolenaar2019-07-071-2/+2
| | | | | Problem: Sign placement is wrong when 'foldcolumn' is set. Solution: Adjust the column computation. (Yee Cheng Chin, closes #4627)
* patch 8.1.1587: redraw problem when sign icons in the number columnv8.1.1587Bram Moolenaar2019-06-241-1/+4
| | | | | | Problem: Redraw problem when sign icons in the number column. Solution: Clear and redraw when changing related options. Right aligh the sign icon in the GUI. (Yegappan Lakshmanan, closes #4578)
* patch 8.1.1570: icon signs not displayed properly in the number columnv8.1.1570Bram Moolenaar2019-06-191-2/+10
| | | | | Problem: Icon signs not displayed properly in the number column. Solution: Display them properly. (Yegappan Lakshmanan, closes #4559)
* patch 8.1.1520: popup windows are ignored when dealing with mouse positionv8.1.1520Bram Moolenaar2019-06-121-2/+2
| | | | | | Problem: Popup windows are ignored when dealing with mouse position Solution: Find the mouse position inside a popup window. Allow for modeless selection.
* patch 8.1.1453: popup window "moved" property not implemented yetv8.1.1453Bram Moolenaar2019-06-021-0/+7
| | | | | Problem: Popup window "moved" property not implemented yet. Solution: Implement it.
* patch 8.1.1384: using "int" for alloc() often results in compiler warningsv8.1.1384Bram Moolenaar2019-05-241-2/+2
| | | | | | Problem: Using "int" for alloc() often results in compiler warnings. Solution: Use "size_t" and remove type casts. Remove alloc_check(), Vim only works with 32 bit ints anyway.
* patch 8.1.1371: cannot recover from a swap filev8.1.1371Bram Moolenaar2019-05-231-5/+5
| | | | | | | Problem: Cannot recover from a swap file. Solution: Do not expand environment variables in the swap file name. Do not check the extension when we already know a file is a swap file. (Ken Takata, closes 4415, closes #4369)
* patch 8.1.1304: MS-Windows: compiler warning for unused valuev8.1.1304Bram Moolenaar2019-05-091-2/+5
| | | | | Problem: MS-Windows: compiler warning for unused value. Solution: Adjust #ifdefs. (Ken Takata, closes #4363)
* patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exev8.1.1230Bram Moolenaar2019-04-281-4/+37
| | | | | | 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.1097: Motif build failsv8.1.1097Bram Moolenaar2019-03-301-1/+5
| | | | | Problem: Motif build fails. (Paul Jolly) Solution: Only use gui_mch_maximized() for MS-Windows. (closes #4194)
* patch 8.1.1092: setting 'guifont' when maximized resizes the Vim windowv8.1.1092Bram Moolenaar2019-03-301-4/+12
| | | | | | | Problem: Setting 'guifont' when maximized resizes the Vim window. When 'guioptions' contains "k" gvim may open with a tiny window. Solution: Avoid un-maximizing when setting 'guifont'. (Yee Cheng Chin, closes #3808)
* patch 8.1.1086: too many curly bracesv8.1.1086Bram Moolenaar2019-03-301-4/+0
| | | | | | Problem: Too many curly braces. Solution: Remove curly braces where they are not needed. (Hirohito Higashi, closes #3982)
* patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar2019-02-171-8/+10
| | | | | | | 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.0864: cannot have a local value for 'scrolloff' and 'sidescrolloff'v8.1.0864Bram Moolenaar2019-01-311-1/+1
| | | | | | | Problem: Cannot have a local value for 'scrolloff' and 'sidescrolloff'. (Gary Holloway) Solution: Make 'scrolloff' and 'sidescrolloff' global-local. (mostly by Aron Widforss, closes #3539)
* patch 8.1.0834: GUI may wait too long before dealing with messagesv8.1.0834Bram Moolenaar2019-01-271-73/+52
| | | | | | | 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.0805: too many #ifdefsv8.1.0805Bram Moolenaar2019-01-241-72/+33
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 1.
* 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.0770: inconsistent use of ELAPSED_FUNCv8.1.0770Bram Moolenaar2019-01-171-3/+3
| | | | | | Problem: Inconsistent use of ELAPSED_FUNC. Solution: Consistently use ELAPSED_FUNC. Also turn ELAPSED_TYPE into a typedef. (Ozaki Kiichi, closes #3815)
* patch 8.1.0763: nobody is using the Sun Workshop supportv8.1.0763Bram Moolenaar2019-01-171-18/+3
| | | | | Problem: Nobody is using the Sun Workshop support. Solution: Remove the Workshop support.
* patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-8/+8
| | | | | | | | 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.0726: redrawing specifically for conceal featurev8.1.0726Bram Moolenaar2019-01-111-4/+5
| | | | | Problem: Redrawing specifically for conceal feature. Solution: Use generic redrawing methods.
* patch 8.1.0626: MS-Windows: no resize to fit parent when using --windowidv8.1.0626Bram Moolenaar2018-12-221-3/+4
| | | | | | Problem: MS-Windows: no resize to fit parent when using --windowid. Solution: Pass FALSE for "mustset" in gui_set_shellsize(). (Agorgianitis Loukas, closes #3616)
* patch 8.1.0577: tabpage right-click menu never shows "Close tab"v8.1.0577Bram Moolenaar2018-12-111-1/+5
| | | | | | Problem: Tabpage right-click menu never shows "Close tab". Solution: Always create the "Close tab" item but ignore the event if there is only one tab.
* patch 8.1.0568: error message for NUL byte in ScreenLines breaks Travis CIv8.1.0568Bram Moolenaar2018-12-071-2/+7
| | | | | Problem: Error message for NUL byte in ScreenLines breaks Travis CI. Solution: Use a normal message fornow.
* patch 8.1.0567: error for NUL byte in ScreenLines goes unnoticedv8.1.0567Bram Moolenaar2018-12-071-3/+9
| | | | | Problem: Error for NUL byte in ScreenLines goes unnoticed. Solution: Add an internal error message.
* patch 8.1.0565: asan complains about reading before allocated blockv8.1.0565Bram Moolenaar2018-12-051-1/+2
| | | | | Problem: Asan complains about reading before allocated block. Solution: Workaround: Avoid offset from becoming negative.
* patch 8.1.0528: various typos in commentsv8.1.0528Bram Moolenaar2018-11-161-1/+1
| | | | | Problem: Various typos in comments. Solution: Fix the typos.
* patch 8.1.0443: unnecessary static function prototypesv8.1.0443Bram Moolenaar2018-09-301-11/+0
| | | | | Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
* patch 8.1.0228: dropping files is ignored while Vim is busyv8.1.0228Bram Moolenaar2018-07-291-31/+39
| | | | | Problem: Dropping files is ignored while Vim is busy. Solution: Postpone the effect of dropping files until it's safe.
* patch 8.1.0226: too many #ifdefsv8.1.0226Bram Moolenaar2018-07-291-2/+0
| | | | | | Problem: Too many #ifdefs. Solution: Graduate the +vreplace feature, it's not much code and quite a few #ifdefs.
* patch 8.1.0121: crash when using ballooneval related to 'vartabstop'v8.1.0121Bram Moolenaar2018-06-281-0/+5
| | | | | Problem: Crash when using ballooneval related to 'vartabstop'. Solution: Initialize balloonEval->vts to NULL. (Markus Braun)
* patch 8.0.1834: GUI: find/replace dialog does not handle some charsv8.0.1834Bram Moolenaar2018-05-131-33/+19
| | | | | | Problem: GUI: find/replace dialog does not handle some chars properly. Solution: Escape '?' when needed. Always escape backslash. (closes #2418, closes #2435)
* patch 8.0.1795: lose contact with jobs when :gui forksv8.0.1795Bram Moolenaar2018-05-051-8/+12
| | | | | | | Problem: Lose contact with jobs when :gui forks. Solution: Don't fork when there is a running job. Make log message for a died job clearer. Also close the terminal when stderr and stdout are the same FD.
* patch 8.0.1567: cannot build Win32 GUI without IMEv8.0.1567Bram Moolenaar2018-03-041-2/+2
| | | | | | Problem: Cannot build Win32 GUI without IME. (John Marriott) Solution: Adjust when IME_WITHOUT_XIM and HAVE_INPUT_METHOD are defined and use it in a few more places.
* patch 8.0.1566: too many #ifdefsv8.0.1566Bram Moolenaar2018-03-041-8/+2
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_SCROLLBIND and FEAT_CURSORBIND.
* patch 8.0.1564: too many #ifdefsv8.0.1564Bram Moolenaar2018-03-041-25/+10
| | | | | | 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.1471: on MS-Windows CursorIM highlighting no longer worksv8.0.1471Bram Moolenaar2018-02-041-2/+2
| | | | | Problem: On MS-Windows CursorIM highlighting no longer works. Solution: Adjust #if statements. (Ken Takata)
* patch 8.0.1462: missing yet another file in patchv8.0.1462Bram Moolenaar2018-02-031-1/+1
| | | | | Problem: Missing yet another file in patch. Solution: Add changes to missing file.
* patch 8.0.1450: GUI: endless loop when stopping cursor blinkingv8.0.1450Bram Moolenaar2018-01-311-3/+3
| | | | | | Problem: Endless loop when gui_mch_stop_blink() is called while blink_state is BLINK_OFF. (zdohnal) Solution: Avoid calling gui_update_cursor() recursively.
* patch 8.0.1449: slow redrawing with DirectXv8.0.1449Bram Moolenaar2018-01-311-12/+36
| | | | | | Problem: Slow redrawing with DirectX. Solution: Avoid calling gui_mch_flush() unnecessarily, especially when updating the cursor. (Ken Takata, closes #2560)
* patch 8.0.1415: warning for unused function without timers featurev8.0.1415Bram Moolenaar2017-12-191-0/+2
| | | | | Problem: Warning for unused function without timers feature. Solution: Add #ifdef. (John Marriott)
* patch 8.0.1407: GUI: CursorHold may trigger before 'updatetime'v8.0.1407Bram Moolenaar2017-12-191-1/+12
| | | | | Problem: GUI: CursorHold may trigger before 'updatetime' when using timers. Solution: Check that 'updatetime' has passed.
* patch 8.0.1405: duplicated code for getting a typed characterv8.0.1405Bram Moolenaar2017-12-181-31/+33
| | | | | | | 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.1401: cannot build with GTK but without XIMv8.0.1401Bram Moolenaar2017-12-171-1/+1
| | | | | Problem: Cannot build with GTK but without XIM. (Guido) Solution: Adjust #ifdef. (closes #2461)
* patch 8.0.1338: USE_IM_CONTROL is confusing and incompletev8.0.1338Bram Moolenaar2017-11-251-2/+2
| | | | | 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-1/+1
| | | | | | 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.