summaryrefslogtreecommitdiff
path: root/src/move.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.4614: redrawing too much when 'cursorline' is setv8.2.4614zeertzjq2022-03-231-26/+2
| | | | | | 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)
* patch 8.2.4389: screenpos() does not handle a position in a closed foldv8.2.4389Bram Moolenaar2022-02-151-28/+43
| | | | | Problem: screenpos() does not handle a position in a closed fold. Solution: Check if the position is inside a closed fold. (closes #9778)
* patch 8.2.4204: screenpos() has non-zero row for invisible textv8.2.4204Bram Moolenaar2022-01-241-1/+4
| | | | | Problem: screenpos() has non-zero row for invisible text. Solution: Only add the window row when the text is visible. (closes #9618)
* patch 8.2.3914: various spelling mistakes in commentsv8.2.3914Dominique Pelle2021-12-271-2/+2
| | | | | Problem: Various spelling mistakes in comments. Solution: Fix the mistakes. (Dominique Pellé, closes #9416)
* patch 8.2.3564: invalid memory access when scrolling without valid screenv8.2.3564Bram Moolenaar2021-10-251-1/+0
| | | | | Problem: Invalid memory access when scrolling without a valid screen. Solution: Do not set VALID_BOTLINE in w_valid.
* patch 8.2.3490: superfluous return statementsv8.2.3490=?UTF-8?q?Dundar=20G=C3=B6c?=2021-10-091-1/+0
| | | | | | Problem: Superfluous return statements. Solution: Remove superfluous return statements from void functions. (closes #8977)
* patch 8.2.3460: some type casts are not neededv8.2.3460=?UTF-8?q?Dundar=20G=C3=B6c?=2021-10-021-1/+1
| | | | | Problem: Some type casts are not needed. Solution: Remove unnecessary type casts. (closes #8934)
* patch 8.2.3394: filler lines are wrong when changing text in diff modev8.2.3394Bram Moolenaar2021-09-011-1/+7
| | | | | | 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)
* patch 8.2.3229: Vim9: runtime and compile time type checks are not the samev8.2.3229Yegappan Lakshmanan2021-07-271-0/+6
| | | | | | 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)
* patch 8.2.3193: screenpos() is wrong when 'display' is "lastline"v8.2.3193Bram Moolenaar2021-07-211-4/+4
| | | | | | | 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)
* patch 8.2.3122: with 'nowrap' cursor position is unexected in narrow windowv8.2.3122Bram Moolenaar2021-07-081-1/+5
| | | | | | Problem: With 'nowrap' cursor position is unexected in narrow window. (Leonid V. Fedorenchik) Solution: Put cursor on the last non-empty line. (closes #8525)
* patch 8.2.2495: text jumps up and down when moving the cursorv8.2.2495Bram Moolenaar2021-02-101-2/+2
| | | | | | | 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)
* patch 8.2.2198: ml_get error when resizing window and using text propertyv8.2.2198Bram Moolenaar2020-12-231-2/+13
| | | | | Problem: ml_get error when resizing window and using text property. Solution: Validate botline of the right window. (closes #7528)
* patch 8.2.2152: screenpos() does not include the WinBar offsetv8.2.2152Bram Moolenaar2020-12-171-1/+1
| | | | | Problem: screenpos() does not include the WinBar offset. Solution: Use W_WINROW() instead of directly using w_window. (closes #7487)
* patch 8.2.1992: build fails with small featuresv8.2.1992Bram Moolenaar2020-11-151-0/+2
| | | | | Problem: Build fails with small features. Solution: Add #ifdef.
* patch 8.2.1990: cursor position wrong in terminal popup with finished jobv8.2.1990Bram Moolenaar2020-11-151-0/+4
| | | | | | Problem: Cursor position wrong in terminal popup with finished job. Solution: Only add the top and left offset when not done already. (closes #7298)
* patch 8.2.1939: invalid memory access in Ex mode with global commandv8.2.1939Bram Moolenaar2020-11-011-0/+1
| | | | | Problem: Invalid memory access in Ex mode with global command. Solution: Make sure the cursor is on a valid line. (closes #7238)
* patch 8.2.1750: popup_setoptions() setting firstline fails if cursorline setv8.2.1750Bram Moolenaar2020-09-261-0/+4
| | | | | | | Problem: Setting firstline with popup_setoptions() fails if cursorline is set. Solution: Use apply_options(). Update the popup before applying "zz". (closes #7010)
* patch 8.2.1211: removed more than dead codev8.2.1211Bram Moolenaar2020-07-141-0/+1
| | | | | Problem: Removed more than dead code. Solution: Put back the decrement.
* patch 8.2.1118: condition can never be true, dead codev8.2.1118Bram Moolenaar2020-07-021-2/+0
| | | | | Problem: Condition can never be true, dead code. Solution: Remove the dead code.
* patch 8.2.0328: no redraw when leaving term-normal mode in popup terminalv8.2.0328Bram Moolenaar2020-02-281-0/+7
| | | | | | Problem: No redraw when leaving terminal-normal mode in a terminal popup window. Solution: Redraw the popup window. (closes #5708)
* patch 8.2.0026: still some /* */ commentsv8.2.0026Bram Moolenaar2019-12-211-166/+166
| | | | | Problem: Still some /* */ comments. Solution: Convert to // comments.
* patch 8.2.0007: popup menu positioned wrong with folding in two tabsv8.2.0007Bram Moolenaar2019-12-141-1/+1
| | | | | Problem: Popup menu positioned wrong with folding in two tabs. Solution: Update the cursor line height. (closes #5353)
* patch 8.1.2371: FEAT_TEXT_PROP is a confusing namev8.1.2371Bram Moolenaar2019-11-301-1/+1
| | | | | Problem: FEAT_TEXT_PROP is a confusing name. Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes #5291)
* patch 8.1.2303: cursor in wrong position after horizontal scrollv8.1.2303Bram Moolenaar2019-11-161-0/+3
| | | | | Problem: Cursor in wrong position after horizontal scroll. Solution: Set w_valid_leftcol. (closes #5214, closes #5224)
* patch 8.1.2284: compiler warning for unused variablev8.1.2284Bram Moolenaar2019-11-101-0/+2
| | | | | Problem: Compiler warning for unused variable. (Tony Mechelynck) Solution: Add #ifdef.
* patch 8.1.2281: 'showbreak' cannot be set for one windowv8.1.2281Bram Moolenaar2019-11-091-2/+5
| | | | | Problem: 'showbreak' cannot be set for one window. Solution: Make 'showbreak' global-local.
* patch 8.1.2228: screenpos() returns wrong values when 'number' is setv8.1.2228Bram Moolenaar2019-10-271-1/+1
| | | | | | Problem: screenpos() returns wrong values when 'number' is set. (Ben Jackson) Solution: Compare the column with the window width. (closes #5133)
* patch 8.1.2171: mouse support not always availablev8.1.2171Bram Moolenaar2019-10-171-24/+4
| | | | | | 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).
* patch 8.1.1928: popup windows don't move with the text when making changesv8.1.1928Bram Moolenaar2019-08-251-4/+6
| | | | | | | 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.
* patch 8.1.1901: the +insert_expand feature is not always availablev8.1.1901Bram Moolenaar2019-08-211-15/+3
| | | | | Problem: The +insert_expand feature is not always available. Solution: Graduate the +insert_expand feature.
* patch 8.1.1645: cannot use a popup window for a balloonv8.1.1645Bram Moolenaar2019-07-071-0/+90
| | | | | | Problem: Cannot use a popup window for a balloon. Solution: Add popup_beval(). Add the "mousemoved" property. Add the screenpos() function.
* patch 8.1.1086: too many curly bracesv8.1.1086Bram Moolenaar2019-03-301-2/+0
| | | | | | Problem: Too many curly braces. Solution: Remove curly braces where they are not needed. (Hirohito Higashi, closes #3982)
* patch 8.1.1026: unused conditionv8.1.1026Bram Moolenaar2019-03-201-39/+2
| | | | | Problem: Unused condition. (Coverity) Solution: Remove the condition. Also remove unused #define.
* patch 8.1.0864: cannot have a local value for 'scrolloff' and 'sidescrolloff'v8.1.0864Bram Moolenaar2019-01-311-35/+43
| | | | | | | 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)
* patch 8.1.0856: when scrolling a window the cursorline is not always updatedv8.1.0856Bram Moolenaar2019-01-311-3/+1
| | | | | | | | 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.
* patch 8.1.0826: too many #ifdefsv8.1.0826Bram Moolenaar2019-01-261-10/+1
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
* patch 8.1.0806: too many #ifdefsv8.1.0806Bram Moolenaar2019-01-241-3/+1
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 2.
* patch 8.1.0715: superfluous call to redraw_win_later()v8.1.0715Bram Moolenaar2019-01-111-3/+2
| | | | | Problem: Superfluous call to redraw_win_later(). Solution: Remove the call.
* patch 8.1.0708: third argument for redrawWinline() is always FALSEv8.1.0708Bram Moolenaar2019-01-091-2/+2
| | | | | Problem: Third argument for redrawWinline() is always FALSE. Solution: Drop the argument. (neovim #9479)
* patch 8.1.0543: Coverity warns for leaking memory and using wrong structv8.1.0543Bram Moolenaar2018-11-241-1/+1
| | | | | | Problem: Coverity warns for leaking memory and using wrong struct. Solution: Free pointer when allocation fails. Change "boff" to "loff". (closes #3634)
* patch 8.1.0448: cursorline not removed when using 'cursorbind'v8.1.0448Bram Moolenaar2018-10-021-9/+7
| | | | | Problem: Cursorline not removed when using 'cursorbind'. (Justin Keyes) Solution: Store the last cursor line per window. (closes #3488)
* patch 8.1.0443: unnecessary static function prototypesv8.1.0443Bram Moolenaar2018-09-301-7/+0
| | | | | Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
* patch 8.1.0435: cursorline highlight not removed in some situationv8.1.0435Bram Moolenaar2018-09-251-0/+6
| | | | | | | Problem: Cursorline highlight not removed in some situation. (Vitaly Yashin) Solution: Reset last_cursorline when resetting 'cursorline'. (Christian Brabandt, closes #3481)
* patch 8.1.0374: moving the cursor is slow when 'relativenumber' is setv8.1.0374Bram Moolenaar2018-09-121-12/+16
| | | | | Problem: Moving the cursor is slow when 'relativenumber' is set. Solution: Only redraw the number column, not all lines.
* patch 8.1.0373: screen updating still slow when 'cursorline' is setv8.1.0373Bram Moolenaar2018-09-121-1/+3
| | | | | Problem: Screen updating still slow when 'cursorline' is set. Solution: Fix setting last_cursorline.
* patch 8.1.0372: screen updating slow when 'cursorline' is setv8.1.0372Bram Moolenaar2018-09-121-1/+20
| | | | | Problem: Screen updating slow when 'cursorline' is set. Solution: Only redraw the old and new cursor line, not all lines.
* patch 8.1.0174: after paging up and down fold line is wrongv8.1.0174Bram Moolenaar2018-07-101-11/+16
| | | | | | Problem: After paging up and down fold line is wrong. Solution: Correct the computation of w_topline and w_botline. (Hirohito Higashi)
* patch 8.0.1566: too many #ifdefsv8.0.1566Bram Moolenaar2018-03-041-6/+0
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_SCROLLBIND and FEAT_CURSORBIND.
* patch 8.0.1564: too many #ifdefsv8.0.1564Bram Moolenaar2018-03-041-2/+0
| | | | | | Problem: Too many #ifdefs. Solution: Graduate the +autocmd feature. Takes away 450 #ifdefs and increases code size of tiny Vim by only 40 Kbyte.