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
Bram Moolenaar
749fa0af85
patch 8.1.1799: cannot avoid mapping for a popup window
...
Problem: Cannot avoid mapping for a popup window.
Solution: Add the "mapping" property, default TRUE.
2019-08-03 16:18:07 +02:00
Bram Moolenaar
90f3e7ac56
patch 8.1.1789: cannot see file name of preview popup window
...
Problem: Cannot see file name of preview popup window.
Solution: Add the file name as the title.
2019-08-01 22:40:44 +02:00
Bram Moolenaar
9bcb70c18a
patch 8.1.1787: cannot resize a popup window
...
Problem: Cannot resize a popup window.
Solution: Allow for resizing by dragging the lower right corncer.
2019-08-01 21:11:05 +02:00
Bram Moolenaar
13b11eddca
patch 8.1.1786: double click in popup scrollbar starts selection
...
Problem: Double click in popup scrollbar starts selection.
Solution: Ignore the double click.
2019-08-01 15:52:45 +02:00
Bram Moolenaar
8edf0e3132
patch 8.1.1779: not showing the popup window right border is confusing
...
Problem: Not showing the popup window right border is confusing.
Solution: Also show the border when 'wrap' is off. (closes #4747 )
2019-07-30 21:19:26 +02:00
Bram Moolenaar
8c8b88d0cc
patch 8.1.1778: not showing the popup window right border is confusing
...
Problem: Not showing the popup window right border is confusing.
Solution: Also show the border when there is no close button. (closes #4747 )
2019-07-30 20:32:41 +02:00
Bram Moolenaar
13d5c3f616
patch 8.1.1773: the preview popup window may be too far to the right
...
Problem: The preview popup window may be too far to the right.
Solution: Keep it inside the screen. Also keep the close button and
scrollbar visible if possible.
2019-07-28 21:42:38 +02:00
Bram Moolenaar
56c0c4749d
patch 8.1.1770: cannot get the window ID of the popup preview window
...
Problem: Cannot get the window ID of the popup preview window.
Solution: Add popup_getpreview().
2019-07-28 17:57:43 +02:00
Bram Moolenaar
e865dcbce1
patch 8.1.1753: use of popup window mask is inefficient
...
Problem: Use of popup window mask is inefficient.
Solution: Precompute and cache the mask.
2019-07-26 22:15:50 +02:00
Bram Moolenaar
7b73d7ebf7
patch 8.1.1752: resizing hashtable is inefficient
...
Problem: Resizing hashtable is inefficient.
Solution: Avoid resizing when the final size is predictable.
2019-07-26 21:26:34 +02:00