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
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