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
Bram Moolenaar
9d5ffceb3f
patch 8.1.1751: when redrawing popups plines_win() may be called often
...
Problem: When redrawing popups plines_win() may be called often.
Solution: Pass a cache to mouse_comp_pos().
2019-07-26 21:01:29 +02:00
Bram Moolenaar
331bafd481
patch 8.1.1719: popup too wide when 'showbreak' is set
...
Problem: Popup too wide when 'showbreak' is set.
Solution: Set window width when computing line length. (closes #4701 )
2019-07-20 17:46:05 +02:00
Bram Moolenaar
cb5ff34c1b
patch 8.1.1718: popup menu highlighting does not look good
...
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.
2019-07-20 16:51:19 +02:00
Bram Moolenaar
7964873afe
patch 8.1.1714: cannot preview a file in a popup window
...
Problem: Cannot preview a file in a popup window.
Solution: Add the 'previewpopup' option.
2019-07-18 21:43:07 +02:00
Bram Moolenaar
df9c6cad8c
patch 8.1.1713: highlighting cursor line only works with popup_menu()
...
Problem: Highlighting cursor line only works with popup_menu().
Solution: Add the "cursorline" property. (Naruhiko Nishino, closes #4671 )
2019-07-18 13:46:42 +02:00
Bram Moolenaar
403d090e39
patch 8.1.1709: Coverity warns for possibly using a NULL pointer
...
Problem: Coverity warns for possibly using a NULL pointer.
Solution: Make sure no NULL pointer is used.
2019-07-17 21:37:32 +02:00
Bram Moolenaar
cfdbc5adde
patch 8.1.1707: Coverity warns for possibly using a NULL pointer
...
Problem: Coverity warns for possibly using a NULL pointer.
Solution: Change the logic to make sure no NULL pointer is used.
2019-07-17 21:27:52 +02:00
Bram Moolenaar
0346413c24
patch 8.1.1690: default padding for popup window menu is too much
...
Problem: Default padding for popup window menu is too much.
Solution: Only add padding left and right.
2019-07-14 16:28:13 +02:00
Bram Moolenaar
a901a37bae
patch 8.1.1678: using popup_menu() does not scroll to show the selected line
...
Problem: When using popup_menu() does not scroll to show the selected line.
Solution: Scroll the text. (Naruhiko Nishino, closes #4651 )
2019-07-13 16:38:50 +02:00
Bram Moolenaar
017c269938
patch 8.1.1676: "maxwidth" of popup window does not always work properly
...
Problem: "maxwidth" of popup window does not always work properly.
Solution: Adjust the computation. (Naruhiko Nishino, closes #4653 )
2019-07-13 14:17:51 +02:00
Bram Moolenaar
b4f0628fc5
patch 8.1.1673: cannot easily find the popup window at a certain position
...
Problem: Cannot easily find the popup window at a certain position.
Solution: Add popup_locate().
2019-07-12 21:07:54 +02:00
Bram Moolenaar
bd42b31780
patch 8.1.1666: click in popup window scrollbar with border doesn't scroll
...
Problem: Click in popup window scrollbar with border doesn't scroll.
Solution: Correct column for the border. (Naruhiko Nishino, closes #4650 )
2019-07-12 16:35:34 +02:00
Bram Moolenaar
b420747478
patch 8.1.1665: crash when popup window with mask is below the screen
...
Problem: Crash when popup window with mask is below the screen.
Solution: Correct boundary check.
2019-07-12 16:05:45 +02:00
Bram Moolenaar
1072768b91
patch 8.1.1663: compiler warning for using size_t
...
Problem: Compiler warning for using size_t.
Solution: Add type cast. (Mike Williams)
2019-07-12 13:59:20 +02:00
Bram Moolenaar
b05caa782d
patch 8.1.1659: popup window "mousemoved" values not correct
...
Problem: Popup window "mousemoved" values not correct.
Solution: Convert text column to mouse column.
2019-07-10 21:55:54 +02:00
Bram Moolenaar
3b849af90a
patch 8.1.1658: debug statements included in patch
...
Problem: Debug statements included in patch.
Solution: Remove the debug statements.
2019-07-10 16:15:04 +02:00
Bram Moolenaar
7ba343e634
patch 8.1.1657: Terminal: screen updates from 'balloonexpr' are not displayed
...
Problem: Terminal: screen updates from 'balloonexpr' are not displayed.
Solution: Update the screen if needed. Fix the word position for
"mousemoved".
2019-07-09 23:22:15 +02:00
Bram Moolenaar
e089c3fd69
patch 8.1.1656: popup window width is wrong when using Tabs
...
Problem: Popup window width is wrong when using Tabs. (Paul Jolly)
Solution: Count tabs correctly. (closes #4637 )
2019-07-09 20:25:25 +02:00
Bram Moolenaar
3e35d05b1f
patch 8.1.1649: Illegal memory access when closing popup window
...
Problem: Illegal memory access when closing popup window.
Solution: Get w_next before closing the window.
2019-07-07 20:43:34 +02:00
Bram Moolenaar
b3d17a20d2
patch 8.1.1645: cannot use a popup window for a balloon
...
Problem: Cannot use a popup window for a balloon.
Solution: Add popup_beval(). Add the "mousemoved" property. Add the
screenpos() function.
2019-07-07 18:28:14 +02:00
Bram Moolenaar
437a746b4c
patch 8.1.1636: crash when popup has fitting scrollbar
...
Problem: Crash when popup has fitting scrollbar. (Trygve Aaberge)
Solution: Don't divide by zero if the scrollbar just fits. (closes #4615 )
2019-07-05 20:17:22 +02:00
Bram Moolenaar
e296e3177b
patch 8.1.1622: wrong width if displaying a lot of lines in a popup window
...
Problem: Wrong width if displaying a lot of lines in a popup window.
Solution: Accurately compute the line overflow.
2019-07-03 23:20:18 +02:00
Bram Moolenaar
ba45f1f4fb
patch 8.1.1620: no test for popup window with border and mask
...
Problem: No test for popup window with border and mask.
Solution: Add this popup window, fix problems.
2019-07-03 22:50:41 +02:00
Bram Moolenaar
d529ba58dc
patch 8.1.1617: no test for popup window with mask and position fixed
...
Problem: No test for popup window with mask and position fixed.
Solution: Add a couple of screenshots. Fix deteced problems.
2019-07-02 23:13:53 +02:00
Bram Moolenaar
7866b87958
patch 8.1.1615: crash when passing buffer number to popup_create()
...
Problem: Crash when passing buffer number to popup_create(). (Yasuhiro
Matsumoto)
Solution: Initialze the window properly.
2019-07-01 22:21:01 +02:00