Mercurial > vim
comparison src/register.c @ 25842:196f75cf6983 v8.2.3455
patch 8.2.3455: using a count with "gp" leaves '] in wrong position
Commit: https://github.com/vim/vim/commit/56858e4ed4e338e15821767b8303b06099e40384
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 22 16:43:59 2021 +0200
patch 8.2.3455: using a count with "gp" leaves '] in wrong position
Problem: Using a count with "gp" leaves '] in wrong position. (Naohiro Ono)
Solution: Correct the mark position. (closes https://github.com/vim/vim/issues/8899)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 22 Sep 2021 16:45:04 +0200 |
parents | 8ff483b86d9b |
children | 79a5c8238a5d |
comparison
equal
deleted
inserted
replaced
25841:f3fc9c20b2b3 | 25842:196f75cf6983 |
---|---|
2203 } | 2203 } |
2204 else | 2204 else |
2205 { | 2205 { |
2206 curwin->w_cursor.lnum = new_lnum; | 2206 curwin->w_cursor.lnum = new_lnum; |
2207 curwin->w_cursor.col = col; | 2207 curwin->w_cursor.col = col; |
2208 curbuf->b_op_end = curwin->w_cursor; | |
2209 if (col > 1) | |
2210 curbuf->b_op_end.col = col - 1; | |
2208 } | 2211 } |
2209 } | 2212 } |
2210 else if (y_type == MLINE) | 2213 else if (y_type == MLINE) |
2211 { | 2214 { |
2212 // put cursor on first non-blank in first inserted line | 2215 // put cursor on first non-blank in first inserted line |