Bram Moolenaar
460ae5dfca
patch 8.2.3967: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2022-01-01 14:19:49 +00:00
Bram Moolenaar
436b5adc97
patch 8.2.3961: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2021-12-31 22:49:24 +00:00
James McCoy
a80aad7174
patch 8.2.3874: cannot highlight the number column for a sign
...
Problem: Cannot highlight the number column for a sign.
Solution: Add the "numhl" argument. (James McCoy, closes #9381 )
2021-12-22 19:45:28 +00:00
Bram Moolenaar
e50507126f
patch 8.2.3763: when editing the cmdline a callback may cause a scroll up
...
Problem: When editing the command line a FocusLost callback may cause the
screen to scroll up.
Solution: Do not redraw at the last line but at the same place where the
command line was before. (closes #9295 )
2021-12-09 10:51:05 +00:00
Bram Moolenaar
40bcec1bac
patch 8.2.3750: error messages are everywhere
...
Problem: Error messages are everywhere.
Solution: Move more error messages to errors.h and adjust the names.
2021-12-05 22:19:27 +00:00
Bram Moolenaar
0b74d00693
patch 8.2.3697: cannot drag a popup without a border
...
Problem: Cannot drag a popup without a border.
Solution: Add the "dragall" option. (closes #9218 )
2021-11-29 17:38:02 +00:00
Bram Moolenaar
e413ea04b7
patch 8.2.3664: cannot adjust sign highlighting for 'cursorline'
...
Problem: Cannot adjust sign highlighting for 'cursorline'.
Solution: Add CursorLineSign and CursorLineFold highlight groups.
(Gregory Anders, closes #9201 )
2021-11-24 16:20:13 +00:00
Bram Moolenaar
87fd0924e2
patch 8.2.3628: looking terminal colors is a bit slow
...
Problem: Looking terminal colors is a bit slow.
Solution: Cache the terminal colors. (closes #9130 , closes #9058 )
2021-11-20 13:47:45 +00:00
Bakudankun
6555500bcf
patch 8.2.3614: zindex of popup windows not used when redrawing popup menu
...
Problem: zindex of popup windows not used when redrawing popup menu.
Solution: Check the zindex when redrawing the popup menu. (closes #9129 ,
closes #9089 )
2021-11-17 20:40:16 +00:00
Yegappan Lakshmanan
733b124a90
patch 8.2.3596: crash when using :pedit in Vim9 script
...
Problem: Crash when using :pedit in Vim9 script.
Solution: Move check for arguments to after checking there are arguments.
(Yegappan Lakshmanan, closes #9134 , closes #9135 )
2021-11-15 11:22:09 +00:00
rbtnn
c611941c60
patch 8.2.3304: popup window title with wide characters is truncated
...
Problem: Popup window title with wide characters is truncated.
Solution: Use vim_strsize() instead of MB_CHARLEN(). (Naruhiko Nishino,
closes #8721 )
2021-08-07 13:08:45 +02:00
Yegappan Lakshmanan
4490ec4e83
patch 8.2.3229: Vim9: runtime and compile time type checks are not the same
...
Problem: Vim9: runtime and compile time type checks are not the same.
Solution: Add more runtime type checks for builtin functions. (Yegappan
Lakshmanan, closes #8646 )
2021-07-27 22:00:44 +02:00
Yegappan Lakshmanan
a764e73d4f
patch 8.2.3221: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8632 )
2021-07-25 15:57:32 +02:00
Yegappan Lakshmanan
0ad871dc4d
patch 8.2.3206: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8611 )
2021-07-23 20:37:56 +02:00
Bram Moolenaar
9bb0dad0d8
patch 8.2.3187: Vim9: popup timer callback is not compiled
...
Problem: Vim9: popup timer callback is not compiled.
Solution: Compile the callback when creating the timer.
2021-07-19 22:19:29 +02:00
Yegappan Lakshmanan
1a71d31bf3
patch 8.2.3162: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add more type checks. (Yegappan Lakshmanan, closes #8560 )
2021-07-15 12:49:58 +02:00
Bram Moolenaar
108010aa47
patch 8.2.3069: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move some error messages to errors.h. Use clearer names.
2021-06-27 22:03:33 +02:00
K.Takata
eeec254878
patch 8.2.2922: computing array length is done in various ways
...
Problem: Computing array length is done in various ways.
Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes #8305 )
2021-06-02 13:28:16 +02:00
Ralf Schandl
bc869874fe
patch 8.2.2893: multi-byte text in popup title shows up wrong
...
Problem: Multi-byte text in popup title shows up wrong.
Solution: Use the character width instead of the byte length. (Ralf Schandl,
closes #8267 , closes #8264 )
2021-05-28 14:12:14 +02:00
Bram Moolenaar
6bfc475f71
patch 8.2.2541: popup_create() does not allow boolean for "cursorline"
...
Problem: Popup_create() does not allow boolean for "cursorline".
Solution: Use dict_get_bool(). (issue #7869 )
2021-02-21 23:12:18 +01:00
Bram Moolenaar
10ccfb2a17
patch 8.2.2510: internal error when popup with mask is zero height or width
...
Problem: Internal error when popup with mask is zero height or width.
Solution: Bail out if width or height is zero. (closes #7831 )
2021-02-13 21:31:18 +01:00
Bram Moolenaar
82db31c104
patch 8.2.2491: popup window for text property may show in first screen line
...
Problem: Popup window for text property may show in first screen line.
Solution: If the text position is invisible do not show the popup window.
(closes #7807 )
2021-02-10 14:56:11 +01:00
Bram Moolenaar
983d83ff1c
patch 8.2.2476: using freed memory when splitting window while closing buffer
...
Problem: Using freed memory when using an autocommand to split a window
while a buffer is being closed.
Solution: Disallow splitting when the buffer has b_locked_split set.
2021-02-07 12:12:43 +01:00
Bram Moolenaar
efa1923565
patch 8.2.2471: popup_setoptions() does not set textprop in other tab
...
Problem: Popup_setoptions() does not set textprop in other tab.
Solution: use win_valid_any_tab(). (closes #7788 )
2021-02-06 14:59:27 +01:00
Bram Moolenaar
6502643677
patch 8.2.2470: popup_getoptions() does not get textprop from other tab
...
Problem: Popup_getoptions() does not get textprop from other tab.
Solution: use win_valid_any_tab(). (closes #7786 )
2021-02-06 14:22:32 +01:00
Bram Moolenaar
014f698cb6
patch 8.2.2296: cannot use CTRL-N and CTRL-P in a popup menu
...
Problem: Cannot use CTRL-N and CTRL-P in a popup menu.
Solution: Use CTRL-N like <Down> and CTRL-P like <Up>. (closes #7614 )
2021-01-04 13:18:30 +01:00
Bram Moolenaar
4012d26207
patch 8.2.2243: crash when popup mask contains zeroes
...
Problem: Crash when popup mask contains zeroes.
Solution: Check boundaries properly. (closes #7569 )
2020-12-29 11:57:46 +01:00
Bram Moolenaar
3ae50c775c
patch 8.2.2132: padding not drawn properly for popup window with title
...
Problem: Padding not drawn properly for popup window with title.
Solution: Draw the padding below the title. (closes #7460 )
2020-12-12 18:18:06 +01:00
Bram Moolenaar
ebec3e29b8
patch 8.2.2064: terminal: cursor is on while redrawing, causing flicker
...
Problem: terminal: cursor is on while redrawing, causing flicker.
Solution: Switch the cursor off while redrawing. Always add the top and
left offset to the cursor position when not done already.
(closes #5943 )
2020-11-28 20:22:06 +01:00
Bram Moolenaar
d91467f830
patch 8.2.2024: flicker when redrawing a popup with a title and border
...
Problem: Flicker when redrawing a popup with a title and border.
Solution: Do not redraw the border where the title is displayed. (Naruhiko
Nishino, closes #7334 )
2020-11-21 12:42:09 +01:00
Bram Moolenaar
6a07644db3
patch 8.2.1990: cursor position wrong in terminal popup with finished job
...
Problem: Cursor position wrong in terminal popup with finished job.
Solution: Only add the top and left offset when not done already.
(closes #7298 )
2020-11-15 20:32:58 +01:00
Bram Moolenaar
b885b435d1
patch 8.2.1958: build failure with timers
...
Problem: Build failure with timers.
Solution: Add missing change.
2020-11-05 19:34:41 +01:00
Bram Moolenaar
371806e164
patch 8.2.1886: using ":silent!" in a popup filter has unexpected effect
...
Problem: Using ":silent!" in a popup filter has unexpected effect.
Solution: Use did_emsg instead of called_emsg. (closes #7178 )
2020-10-22 13:44:54 +02:00
Bram Moolenaar
403dc31f5a
patch 8.2.1858: Vim9: filter functions return number instead of bool
...
Problem: Vim9: filter functions return number instead of bool.
Solution: Return v:true instead of one. (closes #7144 )
2020-10-17 19:29:51 +02:00
Bram Moolenaar
74f8eece5e
patch 8.2.1848: crash when passing a NULL string or list to popup_settext()
...
Problem: Crashyyyyy passing a NULL string or list to popup_settext().
Solution: Check for NULL pointers. (closes #7132 )
2020-10-15 19:10:56 +02:00
Bram Moolenaar
6c542f77eb
patch 8.2.1763: Vim9: cannot use "true" for popup window scrollbar option
...
Problem: Vim9: cannot use "true" for popup window scrollbar option.
Solution: use dict_get_bool(). (closes #7029 )
2020-09-27 21:16:45 +02:00
Bram Moolenaar
3697c9bbae
patch 8.2.1750: popup_setoptions() setting firstline fails if cursorline set
...
Problem: Setting firstline with popup_setoptions() fails if cursorline is
set.
Solution: Use apply_options(). Update the popup before applying "zz".
(closes #7010 )
2020-09-26 22:03:00 +02:00
Bram Moolenaar
10476521f5
patch 8.2.1737: cursor line highlight in popup window is not always updated
...
Problem: Cursor line highlight in popup window is not always updated.
Solution: Check if the cursor has moved. (closes #7010 )
2020-09-24 22:57:31 +02:00
Bram Moolenaar
6bf1b52ba2
patch 8.2.1732: stuck when win_execute() for a popup causes an error
...
Problem: Stuck when win_execute() for a popup causes an error.
Solution: Disable the filter callback on error. (issue #6999 )
2020-09-23 17:41:26 +02:00
Bram Moolenaar
99ca9c4868
patch 8.2.1727: a popup created with "cursorline" will ignore "firstline"
...
Problem: A popup created with "cursorline" will ignore "firstline".
Solution: When both "cursorline" and "firstline" are present put the cursor
on "firstline". (closes #7000 ) Add the "winid" argument to
getcurpos().
2020-09-22 21:55:41 +02:00
Bram Moolenaar
8e9be208ea
patch 8.2.1638: leaking memory when popup filter function can't be called
...
Problem: Leaking memory when popup filter function can't be called.
Solution: Don't return too soon.
2020-09-08 22:55:26 +02:00
Bram Moolenaar
6defa7bf0a
patch 8.2.1636: get stuck if a popup filter causes an error
...
Problem: Get stuck if a popup filter causes an error.
Solution: Check whether the function can be called and does not cause an
error. (closes #6902 )
2020-09-08 22:06:44 +02:00
Bram Moolenaar
62f93f4ec9
patch 8.2.1578: Vim9: popup_clear() does not take "true" as argument
...
Problem: Vim9: popup_clear() does not take "true" as argument.
Solution: Use tv_get_bool(). (closes #6826 )
2020-09-02 22:33:24 +02:00
Bram Moolenaar
165036ddba
patch 8.2.1483: Vim9: error for using special as number
...
Problem: Vim9: error for using special as number when returning "false"
from a popup filter.
Solution: Use tv_get_bool(). (closes #6733 )
2020-08-18 22:50:38 +02:00
Bram Moolenaar
558813314d
patch 8.2.1478: Vim9: cannot use "true" for some popup options
...
Problem: Vim9: cannot use "true" for some popup options.
Solution: Add dict_get_bool(). (closes #6725 )
2020-08-18 13:04:15 +02:00
Bram Moolenaar
6f8f7337c1
patch 8.2.1415: closing a popup window with CTRL-C interrupts 'statusline'
...
Problem: Closing a popup window with CTRL-C interrupts 'statusline' if it
calls a function.
Solution: Reset got_int while redrawing. (closes #6675 )
2020-08-10 21:19:23 +02:00
Bram Moolenaar
bf61fdd008
patch 8.2.1414: popupwindow missing last couple of lines
...
Problem: Popupwindow missing last couple of lines when cursor is in the
first line.
Solution: Compute the max height also when top aligned. (closes #6664 )
2020-08-10 20:39:17 +02:00
Bram Moolenaar
a1b9b0cc01
patch 8.2.1406: popupwindow lacks scrollbar if no "maxheight" is used
...
Problem: Popupwindow lacks scrollbar if no "maxheight" is used.
Solution: Compute the max height depending on the position. (closes #6664 )
2020-08-09 16:37:48 +02:00
Bram Moolenaar
0aac67a431
patch 8.2.1307: popup window width does not include number of sign columns
...
Problem: popup window width does not include number, fold of sign column
width.
Solution: Take number, fold and sign column with into account.
2020-07-27 22:40:37 +02:00
Bram Moolenaar
6d585f4c5c
patch 8.2.1303: calling popup_setoptions() resets 'signcolumn'
...
Problem: Calling popup_setoptions() resets 'signcolumn'.
Solution: Only set 'signcolumn' when creating the popup. (closes #6542 )
2020-07-26 22:20:54 +02:00