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
602eb74d
Commit
602eb74d
authored
18 years ago
by
Bram Moolenaar
Browse files
Options
Downloads
Patches
Plain Diff
updated for version 7.0-201
parent
fa3491a0
No related branches found
Branches containing commit
Tags
v7.0.201
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/diff.c
+12
-5
12 additions, 5 deletions
src/diff.c
src/version.c
+2
-0
2 additions, 0 deletions
src/version.c
with
14 additions
and
5 deletions
src/diff.c
+
12
−
5
View file @
602eb74d
...
...
@@ -2014,6 +2014,7 @@ ex_diffgetput(eap)
int
start_skip
,
end_skip
;
int
new_count
;
int
buf_empty
;
int
found_not_ma
=
FALSE
;
/* Find the current buffer in the list of diff buffers. */
idx_cur
=
diff_buf_idx
(
curbuf
);
...
...
@@ -2028,13 +2029,19 @@ ex_diffgetput(eap)
/* No argument: Find the other buffer in the list of diff buffers. */
for
(
idx_other
=
0
;
idx_other
<
DB_COUNT
;
++
idx_other
)
if
(
curtab
->
tp_diffbuf
[
idx_other
]
!=
curbuf
&&
curtab
->
tp_diffbuf
[
idx_other
]
!=
NULL
&&
(
eap
->
cmdidx
!=
CMD_diffput
||
curtab
->
tp_diffbuf
[
idx_other
]
->
b_p_ma
))
break
;
&&
curtab
->
tp_diffbuf
[
idx_other
]
!=
NULL
)
{
if
(
eap
->
cmdidx
!=
CMD_diffput
||
curtab
->
tp_diffbuf
[
idx_other
]
->
b_p_ma
)
break
;
found_not_ma
=
TRUE
;
}
if
(
idx_other
==
DB_COUNT
)
{
EMSG
(
_
(
"E100: No other buffer in diff mode"
));
if
(
found_not_ma
)
EMSG
(
_
(
"E793: No other buffer in diff mode is modifiable"
));
else
EMSG
(
_
(
"E100: No other buffer in diff mode"
));
return
;
}
...
...
This diff is collapsed.
Click to expand it.
src/version.c
+
2
−
0
View file @
602eb74d
...
...
@@ -666,6 +666,8 @@ static char *(features[]) =
static
int
included_patches
[]
=
{
/* Add new patch number below this line */
/**/
201
,
/**/
200
,
/**/
...
...
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