Bram Moolenaar
471b3aed3e
patch 8.2.4641: may mark the wrong window for redrawing
...
Problem: May mark the wrong window for redrawing.
Solution: Use redraw_win_later(). (closes #10032 )
2022-03-28 12:41:19 +01:00
zeertzjq
3e559cd884
patch 8.2.4638: superfluous check if a redraw is needed for 'cursorline'
...
Problem: Superfluous check if a redraw is needed for 'cursorline'.
Solution: Remove check_redraw_cursorline(). (closes #10030 , closes #10029 )
2022-03-27 19:26:55 +01:00
zeertzjq
c20e46a4e3
patch 8.2.4614: redrawing too much when 'cursorline' is set
...
Problem: Redrawing too much when 'cursorline' is set and jumping around.
Solution: Rely on win_update() to redraw the current and previous cursor
line, do not mark lines as modified. (closes #9996 )
2022-03-23 14:55:23 +00:00
Bram Moolenaar
4556a2e868
patch 8.2.4389: screenpos() does not handle a position in a closed fold
...
Problem: screenpos() does not handle a position in a closed fold.
Solution: Check if the position is inside a closed fold. (closes #9778 )
2022-02-15 13:40:17 +00:00
Bram Moolenaar
7924a17791
patch 8.2.4204: screenpos() has non-zero row for invisible text
...
Problem: screenpos() has non-zero row for invisible text.
Solution: Only add the window row when the text is visible. (closes #9618 )
2022-01-24 16:15:15 +00:00
Dominique Pelle
af4a61a85d
patch 8.2.3914: various spelling mistakes in comments
...
Problem: Various spelling mistakes in comments.
Solution: Fix the mistakes. (Dominique Pellé, closes #9416 )
2021-12-27 17:21:41 +00:00
Bram Moolenaar
777e7c21b7
patch 8.2.3564: invalid memory access when scrolling without valid screen
...
Problem: Invalid memory access when scrolling without a valid screen.
Solution: Do not set VALID_BOTLINE in w_valid.
2021-10-25 17:07:04 +01:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
3826c0513b
patch 8.2.3490: superfluous return statements
...
Problem: Superfluous return statements.
Solution: Remove superfluous return statements from void functions.
(closes #8977 )
2021-10-09 15:39:25 +01:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
dfa5e464d4
patch 8.2.3460: some type casts are not needed
...
Problem: Some type casts are not needed.
Solution: Remove unnecessary type casts. (closes #8934 )
2021-10-02 11:26:51 +01:00
Bram Moolenaar
04626c243c
patch 8.2.3394: filler lines are wrong when changing text in diff mode
...
Problem: Filler lines are wrong when changing text in diff mode.
Solution: Don't change the filler lines on every change. Check
scrollbinding when updating the filler lines. (closes #8809 )
2021-09-01 16:02:07 +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
Bram Moolenaar
189663bdac
patch 8.2.3193: screenpos() is wrong when 'display' is "lastline"
...
Problem: screenpos() is wrong when the last line is partially visible and
'display' is "lastline".
Solution: Also compute the position for a partially visible line.
(closes #8599 )
2021-07-21 18:04:56 +02:00
Bram Moolenaar
30441bb3d5
patch 8.2.3122: with 'nowrap' cursor position is unexected in narrow window
...
Problem: With 'nowrap' cursor position is unexected in narrow window.
(Leonid V. Fedorenchik)
Solution: Put cursor on the last non-empty line. (closes #8525 )
2021-07-08 13:19:31 +02:00
Bram Moolenaar
8f33ebfade
patch 8.2.2495: text jumps up and down when moving the cursor
...
Problem: Text jumps up and down when moving the cursor in a small window
with wrapping text and 'scrolloff' set.
Solution: Adjust the computation of w_skipcol. (partly by Ghjuvan Lacambre,
closes #7813 )
2021-02-10 21:10:12 +01:00
Bram Moolenaar
23999d799c
patch 8.2.2198: ml_get error when resizing window and using text property
...
Problem: ml_get error when resizing window and using text property.
Solution: Validate botline of the right window. (closes #7528 )
2020-12-23 14:36:00 +01:00
Bram Moolenaar
8dd46e72cf
patch 8.2.2152: screenpos() does not include the WinBar offset
...
Problem: screenpos() does not include the WinBar offset.
Solution: Use W_WINROW() instead of directly using w_window. (closes #7487 )
2020-12-17 21:35:29 +01:00
Bram Moolenaar
4792a679f9
patch 8.2.1992: build fails with small features
...
Problem: Build fails with small features.
Solution: Add #ifdef.
2020-11-15 21:11:18 +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
3b6d57f2ce
patch 8.2.1939: invalid memory access in Ex mode with global command
...
Problem: Invalid memory access in Ex mode with global command.
Solution: Make sure the cursor is on a valid line. (closes #7238 )
2020-11-01 21:56:40 +01: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
8455c5ed31
patch 8.2.1211: removed more than dead code
...
Problem: Removed more than dead code.
Solution: Put back the decrement.
2020-07-14 21:22:30 +02:00
Bram Moolenaar
810af5ea46
patch 8.2.1118: condition can never be true, dead code
...
Problem: Condition can never be true, dead code.
Solution: Remove the dead code.
2020-07-02 21:23:42 +02:00
Bram Moolenaar
e52e0c89d1
patch 8.2.0328: no redraw when leaving term-normal mode in popup terminal
...
Problem: No redraw when leaving terminal-normal mode in a terminal popup
window.
Solution: Redraw the popup window. (closes #5708 )
2020-02-28 22:20:10 +01:00
Bram Moolenaar
85a2002adb
patch 8.2.0026: still some /* */ comments
...
Problem: Still some /* */ comments.
Solution: Convert to // comments.
2019-12-21 18:25:54 +01:00
Bram Moolenaar
09dd2bb336
patch 8.2.0007: popup menu positioned wrong with folding in two tabs
...
Problem: Popup menu positioned wrong with folding in two tabs.
Solution: Update the cursor line height. (closes #5353 )
2019-12-14 18:42:15 +01:00
Bram Moolenaar
05ad5ff0ab
patch 8.1.2371: FEAT_TEXT_PROP is a confusing name
...
Problem: FEAT_TEXT_PROP is a confusing name.
Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes #5291 )
2019-11-30 22:48:27 +01:00
Bram Moolenaar
08f23636ae
patch 8.1.2303: cursor in wrong position after horizontal scroll
...
Problem: Cursor in wrong position after horizontal scroll.
Solution: Set w_valid_leftcol. (closes #5214 , closes #5224 )
2019-11-16 14:19:33 +01:00
Bram Moolenaar
439b3aca37
patch 8.1.2284: compiler warning for unused variable
...
Problem: Compiler warning for unused variable. (Tony Mechelynck)
Solution: Add #ifdef.
2019-11-10 01:32:12 +01:00
Bram Moolenaar
ee85702c10
patch 8.1.2281: 'showbreak' cannot be set for one window
...
Problem: 'showbreak' cannot be set for one window.
Solution: Make 'showbreak' global-local.
2019-11-09 23:26:40 +01:00
Bram Moolenaar
38ba4dce4a
patch 8.1.2228: screenpos() returns wrong values when 'number' is set
...
Problem: screenpos() returns wrong values when 'number' is set. (Ben
Jackson)
Solution: Compare the column with the window width. (closes #5133 )
2019-10-27 21:39:09 +01:00
Bram Moolenaar
a1cb1d1dce
patch 8.1.2171: mouse support not always available
...
Problem: Mouse support not always available.
Solution: Enable mouse support also in tiny version. Do not define
FEAT_MOUSE_XTERM on MS-Windows (didn't really work).
2019-10-17 23:00:07 +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
e2c453d38f
patch 8.1.1901: the +insert_expand feature is not always available
...
Problem: The +insert_expand feature is not always available.
Solution: Graduate the +insert_expand feature.
2019-08-21 14:37:09 +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
abab0b0fdd
patch 8.1.1086: too many curly braces
...
Problem: Too many curly braces.
Solution: Remove curly braces where they are not needed. (Hirohito Higashi,
closes #3982 )
2019-03-30 18:47:01 +01:00
Bram Moolenaar
d00e024d9f
patch 8.1.1026: unused condition
...
Problem: Unused condition. (Coverity)
Solution: Remove the condition. Also remove unused #define.
2019-03-20 21:42:20 +01:00
Bram Moolenaar
375e339007
patch 8.1.0864: cannot have a local value for 'scrolloff' and 'sidescrolloff'
...
Problem: Cannot have a local value for 'scrolloff' and 'sidescrolloff'.
(Gary Holloway)
Solution: Make 'scrolloff' and 'sidescrolloff' global-local. (mostly by
Aron Widforss, closes #3539 )
2019-01-31 18:26:10 +01:00
Bram Moolenaar
bbb5f8d4c2
patch 8.1.0856: when scrolling a window the cursorline is not always updated
...
Problem: When scrolling a window other than the current one the cursorline
highlighting is not always updated. (Jason Franklin)
Solution: Call redraw_for_cursorline() after scrolling. Only set
w_last_cursorline when drawing the cursor line. Reset the lines
to be redrawn also when redrawing the whole window.
2019-01-31 13:22:32 +01:00
Bram Moolenaar
29ddebef40
patch 8.1.0826: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
2019-01-26 17:28:26 +01:00
Bram Moolenaar
fc3abf47fb
patch 8.1.0806: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate FEAT_MBYTE, part 2.
2019-01-24 15:54:21 +01:00
Bram Moolenaar
6f7e555f74
patch 8.1.0715: superfluous call to redraw_win_later()
...
Problem: Superfluous call to redraw_win_later().
Solution: Remove the call.
2019-01-11 11:55:16 +01:00
Bram Moolenaar
ae12f4bad3
patch 8.1.0708: third argument for redrawWinline() is always FALSE
...
Problem: Third argument for redrawWinline() is always FALSE.
Solution: Drop the argument. (neovim #9479 )
2019-01-09 20:51:04 +01:00
Bram Moolenaar
4e303c8ba8
patch 8.1.0543: Coverity warns for leaking memory and using wrong struct
...
Problem: Coverity warns for leaking memory and using wrong struct.
Solution: Free pointer when allocation fails. Change "boff" to "loff".
(closes #3634 )
2018-11-24 14:27:44 +01:00
Bram Moolenaar
4a5abbd613
patch 8.1.0448: cursorline not removed when using 'cursorbind'
...
Problem: Cursorline not removed when using 'cursorbind'. (Justin Keyes)
Solution: Store the last cursor line per window. (closes #3488 )
2018-10-02 18:26:10 +02:00
Bram Moolenaar
6dff58f15c
patch 8.1.0443: unnecessary static function prototypes
...
Problem: Unnecessary static function prototypes.
Solution: Remove unnecessary prototypes.
2018-09-30 21:43:26 +02:00
Bram Moolenaar
8c63e0ec31
patch 8.1.0435: cursorline highlight not removed in some situation
...
Problem: Cursorline highlight not removed in some situation. (Vitaly
Yashin)
Solution: Reset last_cursorline when resetting 'cursorline'. (Christian
Brabandt, closes #3481 )
2018-09-25 22:17:54 +02:00
Bram Moolenaar
bd9a53c06c
patch 8.1.0374: moving the cursor is slow when 'relativenumber' is set
...
Problem: Moving the cursor is slow when 'relativenumber' is set.
Solution: Only redraw the number column, not all lines.
2018-09-12 23:15:48 +02:00
Bram Moolenaar
1b7fefcbce
patch 8.1.0373: screen updating still slow when 'cursorline' is set
...
Problem: Screen updating still slow when 'cursorline' is set.
Solution: Fix setting last_cursorline.
2018-09-12 22:27:15 +02:00
Bram Moolenaar
90a997987d
patch 8.1.0372: screen updating slow when 'cursorline' is set
...
Problem: Screen updating slow when 'cursorline' is set.
Solution: Only redraw the old and new cursor line, not all lines.
2018-09-12 21:52:18 +02:00
Bram Moolenaar
907dad72ef
patch 8.1.0174: after paging up and down fold line is wrong
...
Problem: After paging up and down fold line is wrong.
Solution: Correct the computation of w_topline and w_botline. (Hirohito
Higashi)
2018-07-10 15:07:15 +02:00