Bram Moolenaar
fd318115a5
patch 8.1.2334: possible NULL pointer dereference in popup_locate()
...
Problem: Possible NULL pointer dereference in popup_locate(). (Coverity)
Solution: Check for NULL pointer.
2019-11-22 19:22:08 +01:00
Bram Moolenaar
a37cb55da6
patch 8.1.2307: positioning popup doesn't work for buffer-local textprop
...
Problem: Positioning popup doesn't work for buffer-local textprop.
Solution: Make it work. (closes #5225 )
2019-11-16 20:03:31 +01:00
Bram Moolenaar
db3a205147
patch 8.1.2304: cannot get the mouse position when getting a mouse click
...
Problem: Cannot get the mouse position when getting a mouse click.
Solution: Add getmousepos().
2019-11-16 18:22:41 +01:00
Bram Moolenaar
afe45b68a6
patch 8.1.2300: redraw breaks going through list of popup windows
...
Problem: Redraw breaks going through list of popup windows.
Solution: Use different flags for popup_reset_handled(). (closes #5216 )
2019-11-13 22:35:19 +01:00
Bram Moolenaar
d002e411c6
patch 8.1.2292: v:mouse_winid not set on click in popup window
...
Problem: v:mouse_winid not set on click in popup window.
Solution: Set v:mouse_winid. (closes #5171 )
2019-11-11 21:45:05 +01:00
Bram Moolenaar
5c6b6187ac
patch 8.1.2288: not using all space when popup with "topleft" flips to above
...
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 )
2019-11-10 17:51:38 +01:00
Bram Moolenaar
622b646037
patch 8.1.2286: using border highlight in popup window leaks memory
...
Problem: Using border highlight in popup window leaks memory.
Solution: Free memory before overwriting. (Dominique Pelle, closes #5203 )
2019-11-10 15:16:54 +01:00
Bram Moolenaar
4dd8fe0b4f
patch 8.1.2273: wrong default when "pos" is changed with popup_atcursor()
...
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 )
2019-11-09 15:33:31 +01:00
Bram Moolenaar
f8b036bcae
patch 8.1.2266: position unknown for a mouse click in a popup window
...
Problem: Position unknown for a mouse click in a popup window.
Solution: Set v:mouse_col and v:mouse_lnum. (closes #5171 )
2019-11-06 21:09:17 +01:00
Bram Moolenaar
638a4a7508
patch 8.1.2265: when popup with "botleft" does not fit it flips incorrectly
...
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 )
2019-11-06 19:25:22 +01:00
Bram Moolenaar
30efcf3d26
patch 8.1.2250: CTRL-U and CTRL-D don't work in popup window
...
Problem: CTRL-U and CTRL-D don't work in popup window.
Solution: Initialize 'scroll'. Add "lastline" in popup_getpos().
(closes #5170 )
2019-11-03 22:29:38 +01:00
Bram Moolenaar
f2885d3fb7
patch 8.1.2240: popup window width changes when scrolling
...
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 )
2019-11-02 20:21:25 +01:00
Bram Moolenaar
aa1f04d092
patch 8.1.2213: popup_textprop tests fail
...
Problem: Popup_textprop tests fail.
Solution: Adjust the column and line positioning.
2019-10-24 22:12:54 +02:00
Bram Moolenaar
b754b5bf6d
patch 8.1.2210: using negative offset for popup_create() does not work
...
Problem: Using negative offset for popup_create() does not work.
Solution: Use -1 instead of zero. (closes #5111 )
2019-10-24 19:25:00 +02:00
Bram Moolenaar
a13961536e
patch 8.1.2193: popup_setoptions(popup_getoptions()) does not work
...
Problem: Popup_setoptions(popup_getoptions()) does not work.
Solution: Also accept a list with three entries for "moved" and
"mousemoved". (closes #5081 )
2019-10-20 18:46:05 +02:00
Bram Moolenaar
dca7abe79c
patch 8.1.2192: cannot easily fill the info popup asynchronously
...
Problem: Cannot easily fill the info popup asynchronously.
Solution: Add the "popuphidden" value to 'completeopt'. (closes #4924 )
2019-10-20 18:17:57 +02:00
Bram Moolenaar
7b3d939667
patch 8.1.2164: stuck when using "j" in a popupwin with popup_filter_menu
...
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 )
2019-10-16 22:17:07 +02:00
Bram Moolenaar
fd00c042af
patch 8.1.2114: when a popup is closed with CTRL-C the callback aborts
...
Problem: When a popup is closed with CTRL-C the callback aborts.
Solution: Reset got_int when invoking the callback. (closes #5008 )
2019-10-05 11:56:54 +02:00
Bram Moolenaar
1824f45883
patch 8.1.2109: popup_getoptions() hangs with tab-local popup
...
Problem: popup_getoptions() hangs with tab-local popup.
Solution: Correct pointer name. (Marko Mahnič, closes #5006 )
2019-10-02 23:06:46 +02:00
Bram Moolenaar
8617348e21
patch 8.1.2107: various memory leaks reported by asan
...
Problem: Various memory leaks reported by asan.
Solution: Free the memory. (Ozaki Kiichi, closes #5003 )
2019-10-01 17:02:16 +02:00
Bram Moolenaar
f21118e4a9
patch 8.1.2078: build error with +textprop but without +terminal
...
Problem: Build error with +textprop but without +terminal. (Tony Mechelynck)
Solution: Add #ifdef.
2019-09-25 22:45:45 +02:00
Bram Moolenaar
e0d749a496
patch 8.1.2076: crash when trying to put a terminal in a popup window
...
Problem: Crash when trying to put a terminal buffer in a popup window.
Solution: Check for NULL buffer. Do not allow putting a terminal in a popup
window.
2019-09-25 22:14:48 +02:00
Bram Moolenaar
076d98839c
patch 8.1.2032: scrollbar thumb wrong in popup window
...
Problem: Scrollbar thumb wrong in popup window.
Solution: Adjust thumb size and position when scrolled.
2019-09-14 22:23:29 +02:00
Bram Moolenaar
3d2a3cbce8
patch 8.1.2009: cursorline highlighting not updated in popup window
...
Problem: Cursorline highlighting not updated in popup window. (Marko
Mahnič)
Solution: Check if the cursor position changed. (closes #4912 )
2019-09-08 17:12:01 +02:00
Bram Moolenaar
fbb3bc89b3
patch 8.1.1998: redraw even when no popup window filter was invoked
...
Problem: Redraw even when no popup window filter was invoked.
Solution: Only redraw when must_redraw was set to a larger value.
2019-09-07 14:33:36 +02:00
Bram Moolenaar
bcb4c8f905
patch 8.1.1997: no redraw after a popup window filter is invoked
...
Problem: No redraw after a popup window filter is invoked.
Solution: Redraw if needed.
2019-09-07 14:06:52 +02:00
Bram Moolenaar
581ba39aef
patch 8.1.1969: popup window filter is used in all modes
...
Problem: Popup window filter is used in all modes.
Solution: Add the "filtermode" property.
2019-09-03 22:08:33 +02:00
Bram Moolenaar
934470e562
patch 8.1.1963: popup window filter may be called recursively
...
Problem: Popup window filter may be called recursively when using a Normal
mode command.
Solution: Prevent recursiveness. (closes #4887 ) Also restore KeyTyped.
2019-09-01 23:27:05 +02:00
Bram Moolenaar
a112f2d003
patch 8.1.1959: when using "firstline" in popup window text may jump
...
Problem: When using "firstline" in popup window text may jump when
redrawing it. (Nick Jensen)
Solution: Set 'scrolloff' to zero in a popup window. (closes #4882 )
2019-09-01 17:38:09 +02:00
Bram Moolenaar
8c6173c7d3
patch 8.1.1949: cannot scroll a popup window to the very bottom
...
Problem: Cannot scroll a popup window to the very bottom.
Solution: Scroll to the bottom when the "firstline" property was set to -1.
(closes #4577 ) Allow resetting min/max width/height.
2019-08-30 22:08:34 +02:00
Bram Moolenaar
9e67b6a6a1
patch 8.1.1945: popup window "firstline" cannot be reset
...
Problem: Popup window "firstline" cannot be reset.
Solution: Allow for setting "firstline" to zero. Fix that the text jumps to
the top when using win_execute(). (closes #4876 )
2019-08-30 17:34:08 +02:00
Bram Moolenaar
1fb0831a0e
patch 8.1.1936: not enough tests for text property popup window
...
Problem: Not enough tests for text property popup window.
Solution: Add a few more tests. Make negative offset work. Close all
popups when window closes.
2019-08-29 20:02:11 +02:00
Bram Moolenaar
bc2d4c1db6
patch 8.1.1934: not enough tests for text property popup window
...
Problem: Not enough tests for text property popup window.
Solution: Add a few more tests.
2019-08-28 22:18:30 +02:00
Bram Moolenaar
12034e22dd
patch 8.1.1928: popup windows don't move with the text when making changes
...
Problem: Popup windows don't move with the text when making changes.
Solution: Add the 'textprop" property to the popup window options, position
the popup relative to a text property. (closes #4560 )
No tests yet.
2019-08-25 22:25:02 +02:00
Bram Moolenaar
f63962378d
patch 8.1.1920: cannot always close a popup when filter consumes all events
...
Problem: Cannot close a popup by the X when a filter consumes all events.
Solution: Check for a click on the close button before invoking filters.
(closes #4858 )
2019-08-24 19:36:00 +02:00
Bram Moolenaar
4645104be4
patch 8.1.1919: using window options when passing a buffer to popup_create()
...
Problem: Using current window option values when passing a buffer to
popup_create().
Solution: Clear the window-local options. (closes #4857 )
2019-08-24 15:50:46 +02:00
Bram Moolenaar
e9a891f255
patch 8.1.1918: redrawing popups is inefficient
...
Problem: Redrawing popups is inefficient.
Solution: Fix the logic to compute what window lines to redraw. Make it
work below the last line. Remove redrawing all windows.
2019-08-24 15:26:24 +02:00
Bram Moolenaar
356375fbf8
patch 8.1.1917: non-current window is not redrawn when moving popup
...
Problem: Non-current window is not redrawn when moving popup. (Ben Jackson)
Solution: Redraw all windows under a popup. (closes #4860 )
2019-08-24 14:46:29 +02:00
Bram Moolenaar
00b0d6d8dc
patch 8.1.1908: every popup window consumes a buffer number
...
Problem: Every popup window consumes a buffer number.
Solution: Recycle buffers only used for popup windows. Do not list popup
window buffers.
2019-08-21 22:25:30 +02:00
Bram Moolenaar
fe6e7618b4
patch 8.1.1907: wrong position for info popup with scrollbar on the left
...
Problem: Wrong position for info popup with scrollbar on the left.
Solution: Take the scrollbar into account.
2019-08-21 20:57:20 +02:00
Bram Moolenaar
c7c5f10a36
patch 8.1.1905: cannot set all properties of the info popup
...
Problem: Cannot set all properties of the info popup.
Solution: Add popup_findinfo(). Rename popup_getpreview() to
popup_findpreview().
2019-08-21 18:31:03 +02:00
Bram Moolenaar
258cef59d8
patch 8.1.1904: cannot have an info popup align with the popup menu
...
Problem: Cannot have an info popup align with the popup menu.
Solution: Add the "align" item to 'completepopup'.
2019-08-21 17:29:29 +02:00
Bram Moolenaar
bd483b3f57
patch 8.1.1902: cannot have an info popup without a border
...
Problem: Cannot have an info popup without a border.
Solution: Add the "border" item to 'completepopup'.
2019-08-21 15:13:41 +02:00
Bram Moolenaar
36e4d985f0
patch 8.1.1892: missing index entry and option menu for 'completepopup'
...
Problem: Missing index entry and option menu for 'completepopup'.
Solution: Add the entries. Adjust #ifdefs to avoid dead code.
2019-08-20 21:12:16 +02:00
Bram Moolenaar
5843f5f37b
patch 8.1.1891: functions used in one file are global
...
Problem: Functions used in one file are global.
Solution: Add "static". (Yegappan Lakshmanan, closes #4840 )
2019-08-20 20:13:45 +02:00
Bram Moolenaar
62a0cb443c
patch 8.1.1882: cannot specify properties of the info popup window
...
Problem: Cannot specify properties of the info popup window.
Solution: Add the 'completepopup' option. Default to PmenuSel highlight.
2019-08-18 16:35:23 +02:00
Bram Moolenaar
576a4a6ff1
patch 8.1.1880: cannot show extra info for completion in a popup window
...
Problem: Cannot show extra info for completion in a popup window.
Solution: Add the "popup" entry in 'completeopt'.
2019-08-18 15:25:17 +02:00
Bram Moolenaar
5d458a7b3d
patch 8.1.1814: a long title in a popup window overflows
...
Problem: A long title in a popup window overflows.
Solution: Truncate the title. (closes #4770 )
2019-08-04 21:12:15 +02:00
Bram Moolenaar
b8350abef0
patch 8.1.1810: popup_getoptions() is missing an entry for "mapping"
...
Problem: Popup_getoptions() is missing an entry for "mapping".
Solution: Add the entry.
2019-08-04 17:59:49 +02:00
Bram Moolenaar
c6538bcc1c
patch 8.1.1800: function call functions have too many arguments
...
Problem: Function call functions have too many arguments.
Solution: Pass values in a funcexe_T struct.
2019-08-03 18:17:11 +02:00