mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
vim-patch:9.0.0751: 'scrolloff' does not work well with 'smoothscroll'
Problem: 'scrolloff' does not work well with 'smoothscroll'.
Solution: Make positioning the cursor a bit better. Rename functions.
c9121f798f
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -5503,7 +5503,7 @@ void cursor_pos_info(dict_T *dict)
|
||||
validate_virtcol();
|
||||
col_print(buf1, sizeof(buf1), (int)curwin->w_cursor.col + 1,
|
||||
(int)curwin->w_virtcol + 1);
|
||||
col_print(buf2, sizeof(buf2), (int)strlen(p), linetabsize(p));
|
||||
col_print(buf2, sizeof(buf2), (int)strlen(p), linetabsize_str(p));
|
||||
|
||||
if (char_count_cursor == byte_count_cursor
|
||||
&& char_count == byte_count) {
|
||||
|
Reference in New Issue
Block a user