summaryrefslogtreecommitdiff
path: root/src/popupwin.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.1.2032: scrollbar thumb wrong in popup windowv8.1.2032Bram Moolenaar2019-09-141-3/+8
| | | | | Problem: Scrollbar thumb wrong in popup window. Solution: Adjust thumb size and position when scrolled.
* patch 8.1.2009: cursorline highlighting not updated in popup windowv8.1.2009Bram Moolenaar2019-09-081-3/+21
| | | | | | Problem: Cursorline highlighting not updated in popup window. (Marko Mahnič) Solution: Check if the cursor position changed. (closes #4912)
* patch 8.1.1998: redraw even when no popup window filter was invokedv8.1.1998Bram Moolenaar2019-09-071-1/+2
| | | | | Problem: Redraw even when no popup window filter was invoked. Solution: Only redraw when must_redraw was set to a larger value.
* patch 8.1.1997: no redraw after a popup window filter is invokedv8.1.1997Bram Moolenaar2019-09-071-0/+2
| | | | | Problem: No redraw after a popup window filter is invoked. Solution: Redraw if needed.
* patch 8.1.1969: popup window filter is used in all modesv8.1.1969Bram Moolenaar2019-09-031-1/+14
| | | | | Problem: Popup window filter is used in all modes. Solution: Add the "filtermode" property.
* patch 8.1.1963: popup window filter may be called recursivelyv8.1.1963Bram Moolenaar2019-09-011-1/+9
| | | | | | Problem: Popup window filter may be called recursively when using a Normal mode command. Solution: Prevent recursiveness. (closes #4887) Also restore KeyTyped.
* patch 8.1.1959: when using "firstline" in popup window text may jumpv8.1.1959Bram Moolenaar2019-09-011-1/+2
| | | | | | 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)
* patch 8.1.1949: cannot scroll a popup window to the very bottomv8.1.1949Bram Moolenaar2019-08-301-9/+28
| | | | | | 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.
* patch 8.1.1945: popup window "firstline" cannot be resetv8.1.1945Bram Moolenaar2019-08-301-2/+11
| | | | | | 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)
* patch 8.1.1936: not enough tests for text property popup windowv8.1.1936Bram Moolenaar2019-08-291-18/+21
| | | | | | 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.
* patch 8.1.1934: not enough tests for text property popup windowv8.1.1934Bram Moolenaar2019-08-281-1/+1
| | | | | Problem: Not enough tests for text property popup window. Solution: Add a few more tests.
* patch 8.1.1928: popup windows don't move with the text when making changesv8.1.1928Bram Moolenaar2019-08-251-90/+261
| | | | | | | 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.
* patch 8.1.1920: cannot always close a popup when filter consumes all eventsv8.1.1920Bram Moolenaar2019-08-241-4/+22
| | | | | | 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)
* patch 8.1.1919: using window options when passing a buffer to popup_create()v8.1.1919Bram Moolenaar2019-08-241-1/+2
| | | | | | Problem: Using current window option values when passing a buffer to popup_create(). Solution: Clear the window-local options. (closes #4857)
* patch 8.1.1918: redrawing popups is inefficientv8.1.1918Bram Moolenaar2019-08-241-14/+17
| | | | | | 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.
* patch 8.1.1917: non-current window is not redrawn when moving popupv8.1.1917Bram Moolenaar2019-08-241-2/+3
| | | | | Problem: Non-current window is not redrawn when moving popup. (Ben Jackson) Solution: Redraw all windows under a popup. (closes #4860)
* patch 8.1.1908: every popup window consumes a buffer numberv8.1.1908Bram Moolenaar2019-08-211-2/+1
| | | | | | Problem: Every popup window consumes a buffer number. Solution: Recycle buffers only used for popup windows. Do not list popup window buffers.
* patch 8.1.1907: wrong position for info popup with scrollbar on the leftv8.1.1907Bram Moolenaar2019-08-211-0/+3
| | | | | Problem: Wrong position for info popup with scrollbar on the left. Solution: Take the scrollbar into account.
* patch 8.1.1905: cannot set all properties of the info popupv8.1.1905Bram Moolenaar2019-08-211-13/+50
| | | | | | Problem: Cannot set all properties of the info popup. Solution: Add popup_findinfo(). Rename popup_getpreview() to popup_findpreview().
* patch 8.1.1904: cannot have an info popup align with the popup menuv8.1.1904Bram Moolenaar2019-08-211-0/+14
| | | | | Problem: Cannot have an info popup align with the popup menu. Solution: Add the "align" item to 'completepopup'.
* patch 8.1.1902: cannot have an info popup without a borderv8.1.1902Bram Moolenaar2019-08-211-1/+19
| | | | | Problem: Cannot have an info popup without a border. Solution: Add the "border" item to 'completepopup'.
* patch 8.1.1892: missing index entry and option menu for 'completepopup'v8.1.1892Bram Moolenaar2019-08-201-2/+12
| | | | | Problem: Missing index entry and option menu for 'completepopup'. Solution: Add the entries. Adjust #ifdefs to avoid dead code.
* patch 8.1.1891: functions used in one file are globalv8.1.1891Bram Moolenaar2019-08-201-1/+3
| | | | | Problem: Functions used in one file are global. Solution: Add "static". (Yegappan Lakshmanan, closes #4840)
* patch 8.1.1882: cannot specify properties of the info popup windowv8.1.1882Bram Moolenaar2019-08-181-11/+49
| | | | | Problem: Cannot specify properties of the info popup window. Solution: Add the 'completepopup' option. Default to PmenuSel highlight.
* patch 8.1.1880: cannot show extra info for completion in a popup windowv8.1.1880Bram Moolenaar2019-08-181-28/+87
| | | | | Problem: Cannot show extra info for completion in a popup window. Solution: Add the "popup" entry in 'completeopt'.
* patch 8.1.1814: a long title in a popup window overflowsv8.1.1814Bram Moolenaar2019-08-041-1/+7
| | | | | Problem: A long title in a popup window overflows. Solution: Truncate the title. (closes #4770)
* patch 8.1.1810: popup_getoptions() is missing an entry for "mapping"v8.1.1810Bram Moolenaar2019-08-041-0/+1
| | | | | Problem: Popup_getoptions() is missing an entry for "mapping". Solution: Add the entry.
* patch 8.1.1800: function call functions have too many argumentsv8.1.1800Bram Moolenaar2019-08-031-6/+2
| | | | | Problem: Function call functions have too many arguments. Solution: Pass values in a funcexe_T struct.
* patch 8.1.1799: cannot avoid mapping for a popup windowv8.1.1799Bram Moolenaar2019-08-031-1/+30
| | | | | Problem: Cannot avoid mapping for a popup window. Solution: Add the "mapping" property, default TRUE.
* patch 8.1.1789: cannot see file name of preview popup windowv8.1.1789Bram Moolenaar2019-08-011-0/+37
| | | | | Problem: Cannot see file name of preview popup window. Solution: Add the file name as the title.
* patch 8.1.1787: cannot resize a popup windowv8.1.1787Bram Moolenaar2019-08-011-9/+79
| | | | | Problem: Cannot resize a popup window. Solution: Allow for resizing by dragging the lower right corncer.
* patch 8.1.1786: double click in popup scrollbar starts selectionv8.1.1786Bram Moolenaar2019-08-011-5/+14
| | | | | Problem: Double click in popup scrollbar starts selection. Solution: Ignore the double click.
* patch 8.1.1779: not showing the popup window right border is confusingv8.1.1779Bram Moolenaar2019-07-301-1/+3
| | | | | Problem: Not showing the popup window right border is confusing. Solution: Also show the border when 'wrap' is off. (closes #4747)
* patch 8.1.1778: not showing the popup window right border is confusingv8.1.1778Bram Moolenaar2019-07-301-7/+2
| | | | | Problem: Not showing the popup window right border is confusing. Solution: Also show the border when there is no close button. (closes #4747)
* patch 8.1.1773: the preview popup window may be too far to the rightv8.1.1773Bram Moolenaar2019-07-281-4/+45
| | | | | | 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.
* patch 8.1.1770: cannot get the window ID of the popup preview windowv8.1.1770Bram Moolenaar2019-07-281-1/+9
| | | | | Problem: Cannot get the window ID of the popup preview window. Solution: Add popup_getpreview().
* patch 8.1.1753: use of popup window mask is inefficientv8.1.1753Bram Moolenaar2019-07-261-24/+43
| | | | | Problem: Use of popup window mask is inefficient. Solution: Precompute and cache the mask.
* patch 8.1.1752: resizing hashtable is inefficientv8.1.1752Bram Moolenaar2019-07-261-0/+4
| | | | | Problem: Resizing hashtable is inefficient. Solution: Avoid resizing when the final size is predictable.
* patch 8.1.1751: when redrawing popups plines_win() may be called oftenv8.1.1751Bram Moolenaar2019-07-261-1/+14
| | | | | Problem: When redrawing popups plines_win() may be called often. Solution: Pass a cache to mouse_comp_pos().
* patch 8.1.1719: popup too wide when 'showbreak' is setv8.1.1719Bram Moolenaar2019-07-201-2/+9
| | | | | Problem: Popup too wide when 'showbreak' is set. Solution: Set window width when computing line length. (closes #4701)
* patch 8.1.1718: popup menu highlighting does not look goodv8.1.1718Bram Moolenaar2019-07-201-11/+43
| | | | | | Problem: Popup menu highlighting does not look good. Solution: Highlight the whole window line. Fix that sign line HL is not displayed in a window with a background color.
* patch 8.1.1714: cannot preview a file in a popup windowv8.1.1714Bram Moolenaar2019-07-181-55/+214
| | | | | Problem: Cannot preview a file in a popup window. Solution: Add the 'previewpopup' option.
* patch 8.1.1713: highlighting cursor line only works with popup_menu()v8.1.1713Bram Moolenaar2019-07-181-24/+52
| | | | | Problem: Highlighting cursor line only works with popup_menu(). Solution: Add the "cursorline" property. (Naruhiko Nishino, closes #4671)
* patch 8.1.1709: Coverity warns for possibly using a NULL pointerv8.1.1709Bram Moolenaar2019-07-171-10/+9
| | | | | Problem: Coverity warns for possibly using a NULL pointer. Solution: Make sure no NULL pointer is used.
* patch 8.1.1707: Coverity warns for possibly using a NULL pointerv8.1.1707Bram Moolenaar2019-07-171-4/+3
| | | | | Problem: Coverity warns for possibly using a NULL pointer. Solution: Change the logic to make sure no NULL pointer is used.
* patch 8.1.1690: default padding for popup window menu is too muchv8.1.1690Bram Moolenaar2019-07-141-1/+1
| | | | | Problem: Default padding for popup window menu is too much. Solution: Only add padding left and right.
* patch 8.1.1678: using popup_menu() does not scroll to show the selected linev8.1.1678Bram Moolenaar2019-07-131-0/+6
| | | | | Problem: When using popup_menu() does not scroll to show the selected line. Solution: Scroll the text. (Naruhiko Nishino, closes #4651)
* patch 8.1.1676: "maxwidth" of popup window does not always work properlyv8.1.1676Bram Moolenaar2019-07-131-0/+6
| | | | | Problem: "maxwidth" of popup window does not always work properly. Solution: Adjust the computation. (Naruhiko Nishino, closes #4653)
* patch 8.1.1673: cannot easily find the popup window at a certain positionv8.1.1673Bram Moolenaar2019-07-121-0/+14
| | | | | Problem: Cannot easily find the popup window at a certain position. Solution: Add popup_locate().
* patch 8.1.1666: click in popup window scrollbar with border doesn't scrollv8.1.1666Bram Moolenaar2019-07-121-1/+1
| | | | | Problem: Click in popup window scrollbar with border doesn't scroll. Solution: Correct column for the border. (Naruhiko Nishino, closes #4650)