summaryrefslogtreecommitdiff
path: root/src/popupwin.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.0792: build failure with small featuresv8.2.0792Bram Moolenaar2020-05-181-0/+2
| | | | | Problem: Build failure with small features. Solution: Add #ifdef.
* patch 8.2.0791: a second popup window with terminal causes troublev8.2.0791Bram Moolenaar2020-05-181-0/+26
| | | | | | Problem: A second popup window with terminal causes trouble. Solution: Disallow opening a second terminal-popup window. (closes #6101, closes #6103) Avoid defaulting to an invalid line number.
* patch 8.2.0751: Vim9: performance can be improvedv8.2.0751Bram Moolenaar2020-05-131-5/+5
| | | | | | Problem: Vim9: performance can be improved. Solution: Don't call break. Inline check for list materialize. Make an inline version of ga_grow().
* patch 8.2.0748: cannot get a list of all popupsv8.2.0748Bram Moolenaar2020-05-131-0/+19
| | | | | Problem: Cannot get a list of all popups. Solution: Add popup_list(). Use it in the test runner.
* patch 8.2.0747: cannot forcefully close all popupsv8.2.0747Bram Moolenaar2020-05-131-16/+28
| | | | | | Problem: Cannot forcefully close all popups. Solution: Add the "force" argument to popup_clear(). Use it after running a test. Put back the check for a popup when editing a file.
* patch 8.2.0746: popup_clear() hangs when a popup can't be closedv8.2.0746Bram Moolenaar2020-05-131-9/+15
| | | | | Problem: popup_clear() hangs when a popup can't be closed. Solution: Bail out when a popup can't be closed.
* patch 8.2.0523: loops are repeatedv8.2.0523Bram Moolenaar2020-04-061-1/+1
| | | | | Problem: Loops are repeated. Solution: Use FOR_ALL_ macros. (Yegappan Lakshmanan, closes #5882)
* patch 8.2.0510: Coverity complains about using uninitialized variablev8.2.0510Bram Moolenaar2020-04-041-10/+10
| | | | | Problem: Coverity complains about using uninitialized variable. Solution: Assign a value to "scol". Move code inside NULL check.
* patch 8.2.0500: using the same loop in many placesv8.2.0500Bram Moolenaar2020-04-021-21/+20
| | | | | Problem: Using the same loop in many places. Solution: Define more FOR_ALL macros. (Yegappan Lakshmanan, closes #5339)
* patch 8.2.0380: tiny popup when creating a terminal popup without minwidthv8.2.0380Bram Moolenaar2020-03-141-3/+15
| | | | | Problem: Tiny popup when creating a terminal popup without minwidth. Solution: Use a default mininum size of 5 lines of 20 characters.
* patch 8.2.0375: Coverity warning for not using return valuev8.2.0375Bram Moolenaar2020-03-131-21/+27
| | | | | Problem: Coverity warning for not using return value. Solution: Move error message to separate function.
* patch 8.2.0371: crash with combination of terminal popup and autocmdv8.2.0371Bram Moolenaar2020-03-111-2/+15
| | | | | | Problem: Crash with combination of terminal popup and autocmd. Solution: Disallow closing a popup that is the current window. Add a check that the current buffer is valid. (closes #5754)
* patch 8.2.0359: popup_atcursor() may hangv8.2.0359Bram Moolenaar2020-03-061-2/+3
| | | | | Problem: popup_atcursor() may hang. (Yasuhiro Matsumoto) Solution: Take the decoration into account. (closes #5728)
* patch 8.2.0330: build error with popup window but without terminalv8.2.0330Bram Moolenaar2020-02-281-0/+2
| | | | | Problem: Build error with popup window but without terminal. Solution: Add #ifdef.
* patch 8.2.0329: popup filter converts 0x80 bytesv8.2.0329Bram Moolenaar2020-02-281-1/+1
| | | | | Problem: Popup filter converts 0x80 bytes. Solution: Keep 0x80 bytes as-is. (Ozaki Kiichi, closes #5706)
* patch 8.2.0328: no redraw when leaving term-normal mode in popup terminalv8.2.0328Bram Moolenaar2020-02-281-3/+6
| | | | | | Problem: No redraw when leaving terminal-normal mode in a terminal popup window. Solution: Redraw the popup window. (closes #5708)
* patch 8.2.0327: crash when opening and closing two popup terminal windowsv8.2.0327Bram Moolenaar2020-02-281-3/+25
| | | | | Problem: Crash when opening and closing two popup terminal windows. Solution: Check that prevwin is valid. (closes #5707)
* patch 8.2.0286: cannot use popup_close() for a terminal popupv8.2.0286Bram Moolenaar2020-02-201-1/+6
| | | | | Problem: Cannot use popup_close() for a terminal popup. Solution: Allow using popup_close(). (closes #5666)
* patch 8.2.0214: a popup window with a terminal can be made hiddenv8.2.0214Bram Moolenaar2020-02-051-0/+4
| | | | | Problem: A popup window with a terminal can be made hidden. Solution: Disallow hiding a terminal popup.
* patch 8.2.0205: error code E899 used twicev8.2.0205Bram Moolenaar2020-02-031-1/+1
| | | | | Problem: Error code E899 used twice. Solution: Use E863 for the terminal in popup error.
* patch 8.2.0196: blocking commands for a finished job in a popup windowv8.2.0196Bram Moolenaar2020-02-021-1/+6
| | | | | Problem: Blocking commands for a finished job in a popup window. Solution: Do not block commands if the job has finished. Adjust test.
* patch 8.2.0194: some commands can cause problems in terminal popupv8.2.0194Bram Moolenaar2020-02-011-4/+4
| | | | | Problem: Some commands can cause problems in terminal popup. Solution: Disallow more commands.
* patch 8.2.0192: build failure without +terminal featurev8.2.0192Bram Moolenaar2020-02-011-1/+13
| | | | | Problem: Build failure without +terminal feature. Solution: Add #ifdefs.
* patch 8.2.0191: cannot put a terminal in a popup windowv8.2.0191Bram Moolenaar2020-02-011-10/+40
| | | | | | Problem: Cannot put a terminal in a popup window. Solution: Allow opening a terminal in a popup window. It will always have keyboard focus until closed.
* patch 8.2.0179: still a few places where range() does not workv8.2.0179Bram Moolenaar2020-01-301-2/+16
| | | | | Problem: Still a few places where range() does not work. Solution: Fix using range() causing problems.
* patch 8.2.0142: possible to enter popup window with CTRL-W pv8.2.0142Bram Moolenaar2020-01-231-0/+2
| | | | | Problem: Possible to enter popup window with CTRL-W p. (John Devin) Solution: Check entered window is not a popup window. (closes #5515)
* patch 8.2.0118: crash when cycling to buffers involving popup windowv8.2.0118Bram Moolenaar2020-01-141-7/+1
| | | | | Problem: Crash when cycling to buffers involving popup window . Solution: Do not decrement buffer reference count.
* patch 8.2.0096: cannot create tiny popup window in last columnv8.2.0096Bram Moolenaar2020-01-061-2/+2
| | | | | Problem: Cannot create tiny popup window in last column. (Daniel Steinberg) Solution: Remove position limit. (closes #5447)
* patch 8.1.2420: crash when calling popup_close() in win_execute()v8.1.2420Bram Moolenaar2019-12-111-2/+10
| | | | | | Problem: Crash when calling popup_close() in win_execute(). Solution: Disallow popup_close() in popup window. (Yasuhiro Matsumoto, closes #5345)
* patch 8.1.2373: cannot build with +popupwin but without +quickfixv8.1.2373Bram Moolenaar2019-12-011-8/+20
| | | | | Problem: Cannot build with +popupwin but without +quickfix. (John Marriott) Solution: Adjust #ifdefs.
* patch 8.1.2371: FEAT_TEXT_PROP is a confusing namev8.1.2371Bram Moolenaar2019-11-301-2/+2
| | | | | Problem: FEAT_TEXT_PROP is a confusing name. Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes #5291)
* patch 8.1.2362: cannot place signs in a popup windowv8.1.2362Bram Moolenaar2019-11-301-2/+2
| | | | | | Problem: Cannot place signs in a popup window. (Maxim Kim) Solution: Use the group prefix "PopUp" to specify which signs should show up in a popup window. (closes #5277)
* patch 8.1.2334: possible NULL pointer dereference in popup_locate()v8.1.2334Bram Moolenaar2019-11-221-1/+1
| | | | | Problem: Possible NULL pointer dereference in popup_locate(). (Coverity) Solution: Check for NULL pointer.
* patch 8.1.2307: positioning popup doesn't work for buffer-local textpropv8.1.2307Bram Moolenaar2019-11-161-12/+10
| | | | | Problem: Positioning popup doesn't work for buffer-local textprop. Solution: Make it work. (closes #5225)
* patch 8.1.2304: cannot get the mouse position when getting a mouse clickv8.1.2304Bram Moolenaar2019-11-161-21/+9
| | | | | Problem: Cannot get the mouse position when getting a mouse click. Solution: Add getmousepos().
* patch 8.1.2300: redraw breaks going through list of popup windowsv8.1.2300Bram Moolenaar2019-11-131-19/+24
| | | | | Problem: Redraw breaks going through list of popup windows. Solution: Use different flags for popup_reset_handled(). (closes #5216)
* patch 8.1.2292: v:mouse_winid not set on click in popup windowv8.1.2292Bram Moolenaar2019-11-111-0/+1
| | | | | Problem: v:mouse_winid not set on click in popup window. Solution: Set v:mouse_winid. (closes #5171)
* patch 8.1.2288: not using all space when popup with "topleft" flips to abovev8.1.2288Bram Moolenaar2019-11-101-1/+11
| | | | | | Problem: Not using all space when popup with "topleft" flips to above. Solution: Recompute the height when a popup flips from below to above. (closes #5151)
* patch 8.1.2286: using border highlight in popup window leaks memoryv8.1.2286Bram Moolenaar2019-11-101-0/+6
| | | | | Problem: Using border highlight in popup window leaks memory. Solution: Free memory before overwriting. (Dominique Pelle, closes #5203)
* patch 8.1.2273: wrong default when "pos" is changed with popup_atcursor()v8.1.2273Bram Moolenaar2019-11-091-20/+46
| | | | | | Problem: Wrong default when "pos" is changed with popup_atcursor(). Solution: Adjust the default line and col when "pos" is not the default value. (#5151)
* patch 8.1.2266: position unknown for a mouse click in a popup windowv8.1.2266Bram Moolenaar2019-11-061-3/+21
| | | | | Problem: Position unknown for a mouse click in a popup window. Solution: Set v:mouse_col and v:mouse_lnum. (closes #5171)
* patch 8.1.2265: when popup with "botleft" does not fit it flips incorrectlyv8.1.2265Bram Moolenaar2019-11-061-4/+36
| | | | | | | Problem: When popup with "botleft" does not fit it flips incorrectly. Solution: Only flip when there is more space on the other side. Add the "posinvert" option to disable flipping and do it in both directions if enabled. (closes #5151)
* patch 8.1.2250: CTRL-U and CTRL-D don't work in popup windowv8.1.2250Bram Moolenaar2019-11-031-0/+3
| | | | | | Problem: CTRL-U and CTRL-D don't work in popup window. Solution: Initialize 'scroll'. Add "lastline" in popup_getpos(). (closes #5170)
* patch 8.1.2240: popup window width changes when scrollingv8.1.2240Bram Moolenaar2019-11-021-9/+13
| | | | | | Problem: Popup window width changes when scrolling. Solution: Also adjust maxwidth when applying minwidth and there is a scrollbar. Fix off-by-one error. (closes #5162)
* patch 8.1.2213: popup_textprop tests failv8.1.2213Bram Moolenaar2019-10-241-12/+15
| | | | | Problem: Popup_textprop tests fail. Solution: Adjust the column and line positioning.
* patch 8.1.2210: using negative offset for popup_create() does not workv8.1.2210Bram Moolenaar2019-10-241-7/+15
| | | | | Problem: Using negative offset for popup_create() does not work. Solution: Use -1 instead of zero. (closes #5111)
* patch 8.1.2193: popup_setoptions(popup_getoptions()) does not workv8.1.2193Bram Moolenaar2019-10-201-4/+20
| | | | | | Problem: Popup_setoptions(popup_getoptions()) does not work. Solution: Also accept a list with three entries for "moved" and "mousemoved". (closes #5081)
* patch 8.1.2192: cannot easily fill the info popup asynchronouslyv8.1.2192Bram Moolenaar2019-10-201-1/+5
| | | | | Problem: Cannot easily fill the info popup asynchronously. Solution: Add the "popuphidden" value to 'completeopt'. (closes #4924)
* patch 8.1.2164: stuck when using "j" in a popupwin with popup_filter_menuv8.1.2164Bram Moolenaar2019-10-161-1/+10
| | | | | | Problem: Stuck when using "j" in a popupwin with popup_filter_menu if a line wraps. Solution: Check the cursor line is visible. (closes #4577)
* patch 8.1.2114: when a popup is closed with CTRL-C the callback abortsv8.1.2114Bram Moolenaar2019-10-051-0/+5
| | | | | Problem: When a popup is closed with CTRL-C the callback aborts. Solution: Reset got_int when invoking the callback. (closes #5008)