@@ -303,7 +303,7 @@ popup_getoptions({id}) *popup_getoptions()*
303303 zero. When all values are one then an empty list is included.
304304
305305 "borderhighlight" is not included when all values are empty.
306- "scrollbarhighlight" and "thumbhighlight" are onlu included
306+ "scrollbarhighlight" and "thumbhighlight" are only included
307307 when set.
308308
309309 "tabpage" will be -1 for a global popup, zero for a popup on
@@ -345,7 +345,7 @@ popup_hide({id}) *popup_hide()*
345345
346346
347347popup_locate({row} , {col} ) *popup_locate()*
348- Return the | window-ID | of the popup at screen positoin {row}
348+ Return the | window-ID | of the popup at screen position {row}
349349 and {col} . If there are multiple popups the one with the
350350 highest zindex is returned. If there are no popups at this
351351 position then zero is returned.
@@ -362,6 +362,7 @@ popup_menu({what}, {options}) *popup_menu()*
362362 \ drag: 1,
363363 \ wrap: 0,
364364 \ border: [],
365+ \ cursorline: 1,
365366 \ padding: [0,1,0,1],
366367 \ filter: 'popup_filter_menu',
367368 \ })
@@ -429,6 +430,7 @@ popup_setoptions({id}, {options}) *popup_setoptions()*
429430 callback
430431 close
431432 drag
433+ cursorline
432434 filter
433435 firstline
434436 flip
@@ -598,6 +600,11 @@ The second argument of |popup_create()| is a dictionary with options:
598600 {start} or after {end}
599601 The popup also closes if the cursor moves to another
600602 line or to another window.
603+ cursorline non-zero: Highlight the cursor line. Also scrolls the
604+ text to show this line (only works properly
605+ when 'wrap' is off).
606+ zero: Do not highlight the cursor line.
607+ Default is zero, except for | popup_menu() | .
601608 filter A callback that can filter typed characters, see
602609 | popup-filter | .
603610 callback A callback that is called when the popup closes, e.g.
@@ -695,8 +702,8 @@ If the text does not fit in the popup a scrollbar is displayed on the right of
695702the window. This can be disabled by setting the "scrollbar" option to zero.
696703When the scrollbar is displayed mouse scroll events, while the mouse pointer
697704is on the popup, will cause the text to scroll up or down as you would expect.
698- A click in the upper halve of the scrollbar will scroll the text one line
699- down. A click in the lower halve wil scroll the text one line up. However,
705+ A click in the upper half of the scrollbar will scroll the text one line
706+ down. A click in the lower half wil scroll the text one line up. However,
700707this is limited so that the popup does not get smaller.
701708
702709
@@ -709,7 +716,7 @@ list has four numbers:
709716 leftmost, negative for counting from the right, -1 for
710717 rightmost
711718 endcol last column, like "col"
712- line start line, positive for conting from the top, 1 for top,
719+ line start line, positive for counting from the top, 1 for top,
713720 negative for counting from the bottom, -1 for bottom
714721 endline end line, like "line"
715722
0 commit comments