commit | b6aab8f44beb8c5d99393abdc2c9faab085c72aa | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Oct 03 20:01:16 2022 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Oct 03 20:01:16 2022 +0100 |
tree | dffa0fca48cf9bb9dce8f2b5f2b32f1d96f642e8 | |
parent | f269eabc6c4f5bdcef989cd5b4b95ba8ccaa4d8a [diff] [blame] |
patch 9.0.0652: 'smoothscroll' not tested with 'number' and "n" in 'cpo' Problem: 'smoothscroll' not tested with 'number' and "n" in 'cpo'. Solution: Add tests, fix uncovered problem.
diff --git a/src/move.c b/src/move.c index 75cfadf..39b7089 100644 --- a/src/move.c +++ b/src/move.c
@@ -50,7 +50,7 @@ { ++off; int skip = wp->w_skipcol - width; - width -= win_col_off2(wp); + width += win_col_off2(wp); while (skip >= width) { ++off;