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
4a3aef7b
Commit
4a3aef7b
authored
11 years ago
by
Bram Moolenaar
Browse files
Options
Downloads
Patches
Plain Diff
updated for version 7.4a.030
Problem: Missing find_win_for_buf(). (toothpik) Solution: Add missing changes.
parent
9e902190
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/buffer.c
+24
-6
24 additions, 6 deletions
src/buffer.c
src/version.c
+2
-0
2 additions, 0 deletions
src/version.c
with
26 additions
and
6 deletions
src/buffer.c
+
24
−
6
View file @
4a3aef7b
...
...
@@ -5313,18 +5313,14 @@ buf_spname(buf)
#if defined(FEAT_QUICKFIX) && defined(FEAT_WINDOWS)
if
(
bt_quickfix
(
buf
))
{
win_T
*
win
=
NULL
;
win_T
*
win
;
tabpage_T
*
tp
;
/*
* For location list window, w_llist_ref points to the location list.
* For quickfix window, w_llist_ref is NULL.
*/
FOR_ALL_TAB_WINDOWS
(
tp
,
win
)
if
(
win
->
w_buffer
==
buf
)
goto
win_found
;
win_found:
if
(
win
!=
NULL
&&
win
->
w_llist_ref
!=
NULL
)
if
(
find_win_for_buf
(
buf
,
&
win
,
&
tp
)
==
OK
&&
win
->
w_llist_ref
!=
NULL
)
return
(
char_u
*
)
_
(
msg_loclist
);
else
return
(
char_u
*
)
_
(
msg_qflist
);
...
...
@@ -5345,6 +5341,28 @@ win_found:
return
NULL
;
}
#if (defined(FEAT_QUICKFIX) && defined(FEAT_WINDOWS)) \
|| defined(FEAT_PYTHON) || defined(FEAT_PYTHON3) \
|| defined(PROTO)
/*
* Find a window for buffer "buf".
* If found OK is returned and "wp" and "tp" are set to the window and tabpage.
* If not found FAIL is returned.
*/
int
find_win_for_buf
(
buf
,
wp
,
tp
)
buf_T
*
buf
;
win_T
**
wp
;
tabpage_T
**
tp
;
{
FOR_ALL_TAB_WINDOWS
(
*
tp
,
*
wp
)
if
((
*
wp
)
->
w_buffer
==
buf
)
goto
win_found
;
return
FAIL
;
win_found:
return
OK
;
}
#endif
#if defined(FEAT_SIGNS) || defined(PROTO)
/*
...
...
This diff is collapsed.
Click to expand it.
src/version.c
+
2
−
0
View file @
4a3aef7b
...
...
@@ -727,6 +727,8 @@ static char *(features[]) =
static
int
included_patches
[]
=
{
/* Add new patch number below this line */
/**/
30
,
/**/
29
,
/**/
...
...
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