Mercurial > vim
comparison src/testdir/test_diffmode.vim @ 21321:1421eca61db9 v8.2.1211
patch 8.2.1211: removed more than dead code
Commit: https://github.com/vim/vim/commit/8455c5ed31c9cb2919f5e62693bab6b09bf60df2
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jul 14 21:22:30 2020 +0200
patch 8.2.1211: removed more than dead code
Problem: Removed more than dead code.
Solution: Put back the decrement.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 14 Jul 2020 21:30:05 +0200 |
parents | 20133655107a |
children | 08940efa6b4e |
comparison
equal
deleted
inserted
replaced
21320:438b5a226cc7 | 21321:1421eca61db9 |
---|---|
1128 call setline(1, ["a", "b"]) | 1128 call setline(1, ["a", "b"]) |
1129 diffthis | 1129 diffthis |
1130 redraw | 1130 redraw |
1131 endfunc | 1131 endfunc |
1132 | 1132 |
1133 func Test_diff_and_scroll() | |
1134 " this was causing an ml_get error | |
1135 set ls=2 | |
1136 for i in range(winheight(0) * 2) | |
1137 call setline(i, i < winheight(0) - 10 ? i : i + 10) | |
1138 endfor | |
1139 vnew | |
1140 for i in range(winheight(0)*2 + 10) | |
1141 call setline(i, i < winheight(0) - 10 ? 0 : i) | |
1142 endfor | |
1143 diffthis | |
1144 wincmd p | |
1145 diffthis | |
1146 execute 'normal ' . winheight(0) . "\<C-d>" | |
1147 | |
1148 bwipe! | |
1149 bwipe! | |
1150 set ls& | |
1151 endfunc | |
1152 | |
1133 " vim: shiftwidth=2 sts=2 expandtab | 1153 " vim: shiftwidth=2 sts=2 expandtab |