Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
Vim
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Someone-Else
Vim
Commits
8455c5ed
Commit
8455c5ed
authored
4 years ago
by
Bram Moolenaar
Browse files
Options
Downloads
Patches
Plain Diff
patch 8.2.1211: removed more than dead code
Problem: Removed more than dead code. Solution: Put back the decrement.
parent
1f22cc5c
No related branches found
Branches containing commit
Tags
v8.2.1211
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/move.c
+1
-0
1 addition, 0 deletions
src/move.c
src/testdir/test_diffmode.vim
+20
-0
20 additions, 0 deletions
src/testdir/test_diffmode.vim
src/version.c
+2
-0
2 additions, 0 deletions
src/version.c
with
23 additions
and
0 deletions
src/move.c
+
1
−
0
View file @
8455c5ed
...
@@ -2681,6 +2681,7 @@ halfpage(int flag, linenr_T Prenum)
...
@@ -2681,6 +2681,7 @@ halfpage(int flag, linenr_T Prenum)
if
(
curwin
->
w_topfill
>
0
)
if
(
curwin
->
w_topfill
>
0
)
{
{
i
=
1
;
i
=
1
;
--
n
;
--
curwin
->
w_topfill
;
--
curwin
->
w_topfill
;
}
}
else
else
...
...
This diff is collapsed.
Click to expand it.
src/testdir/test_diffmode.vim
+
20
−
0
View file @
8455c5ed
...
@@ -1130,4 +1130,24 @@ func Test_diff_multilineconceal()
...
@@ -1130,4 +1130,24 @@ func Test_diff_multilineconceal()
redraw
redraw
endfunc
endfunc
func Test_diff_and_scroll
()
" this was causing an ml_get error
set
ls
=
2
for
i
in
range
(
winheight
(
0
)
*
2
)
call
setline
(
i
,
i
<
winheight
(
0
)
-
10
?
i
:
i
+
10
)
endfor
vnew
for
i
in
range
(
winheight
(
0
)
*
2
+
10
)
call
setline
(
i
,
i
<
winheight
(
0
)
-
10
?
0
:
i
)
endfor
diffthis
wincmd
p
diffthis
execute
'normal '
.
winheight
(
0
)
.
"\<C-d>"
bwipe
!
bwipe
!
set
ls
&
endfunc
" vim: shiftwidth=2 sts=2 expandtab
" vim: shiftwidth=2 sts=2 expandtab
This diff is collapsed.
Click to expand it.
src/version.c
+
2
−
0
View file @
8455c5ed
...
@@ -754,6 +754,8 @@ static char *(features[]) =
...
@@ -754,6 +754,8 @@ static char *(features[]) =
static
int
included_patches
[]
=
static
int
included_patches
[]
=
{
/* Add new patch number below this line */
{
/* Add new patch number below this line */
/**/
1211
,
/**/
/**/
1210
,
1210
,
/**/
/**/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment