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
7bfef80f
Commit
7bfef80f
authored
16 years ago
by
Bram Moolenaar
Browse files
Options
Downloads
Patches
Plain Diff
updated for version 7.2-156
parent
69f2d5a9
Loading
Loading
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/ex_docmd.c
+3
-1
3 additions, 1 deletion
src/ex_docmd.c
src/if_cscope.c
+17
-5
17 additions, 5 deletions
src/if_cscope.c
src/proto/if_cscope.pro
+1
-1
1 addition, 1 deletion
src/proto/if_cscope.pro
src/version.c
+2
-0
2 additions, 0 deletions
src/version.c
with
23 additions
and
7 deletions
src/ex_docmd.c
+
3
−
1
View file @
7bfef80f
...
...
@@ -3690,7 +3690,9 @@ set_one_cmd_context(xp, buff)
break;
#ifdef FEAT_CSCOPE
case CMD_cscope:
set_context_in_cscope_cmd(xp, arg);
case CMD_lcscope:
case CMD_scscope:
set_context_in_cscope_cmd(xp, arg, ea.cmdidx);
break;
#endif
#ifdef FEAT_LISTCMDS
...
...
This diff is collapsed.
Click to expand it.
src/if_cscope.c
+
17
−
5
View file @
7bfef80f
...
...
@@ -98,6 +98,7 @@ cs_usage_msg(x)
static
enum
{
EXP_CSCOPE_SUBCMD
,
/* expand ":cscope" sub-commands */
EXP_SCSCOPE_SUBCMD
,
/* expand ":scscope" sub-commands */
EXP_CSCOPE_FIND
,
/* expand ":cscope find" arguments */
EXP_CSCOPE_KILL
/* expand ":cscope kill" arguments */
}
expand_what
;
...
...
@@ -112,12 +113,23 @@ get_cscope_name(xp, idx)
expand_T
*
xp
;
int
idx
;
{
int
current_idx
;
int
i
;
switch
(
expand_what
)
{
case
EXP_CSCOPE_SUBCMD
:
/* Complete with sub-commands of ":cscope":
* add, find, help, kill, reset, show */
return
(
char_u
*
)
cs_cmds
[
idx
].
name
;
case
EXP_SCSCOPE_SUBCMD
:
/* Complete with sub-commands of ":scscope": same sub-commands as
* ":cscope" but skip commands which don't support split windows */
for
(
i
=
0
,
current_idx
=
0
;
cs_cmds
[
i
].
name
!=
NULL
;
i
++
)
if
(
cs_cmds
[
i
].
cansplit
)
if
(
current_idx
++
==
idx
)
break
;
return
(
char_u
*
)
cs_cmds
[
i
].
name
;
case
EXP_CSCOPE_FIND
:
{
const
char
*
query_type
[]
=
...
...
@@ -133,15 +145,13 @@ get_cscope_name(xp, idx)
}
case
EXP_CSCOPE_KILL
:
{
int
i
;
int
current_idx
=
0
;
static
char_u
connection
[
2
];
/* ":cscope kill" accepts connection numbers or partial names of
* the pathname of the cscope database as argument. Only complete
* with connection numbers. -1 can also be used to kill all
* connections. */
for
(
i
=
0
;
i
<
CSCOPE_MAX_CONNECTIONS
;
i
++
)
for
(
i
=
0
,
current_idx
=
0
;
i
<
CSCOPE_MAX_CONNECTIONS
;
i
++
)
{
if
(
csinfo
[
i
].
fname
==
NULL
)
continue
;
...
...
@@ -165,16 +175,18 @@ get_cscope_name(xp, idx)
* Handle command line completion for :cscope command.
*/
void
set_context_in_cscope_cmd
(
xp
,
arg
)
set_context_in_cscope_cmd
(
xp
,
arg
,
cmdidx
)
expand_T
*
xp
;
char_u
*
arg
;
cmdidx_T
cmdidx
;
{
char_u
*
p
;
/* Default: expand subcommands */
xp
->
xp_context
=
EXPAND_CSCOPE
;
expand_what
=
EXP_CSCOPE_SUBCMD
;
xp
->
xp_pattern
=
arg
;
expand_what
=
(
cmdidx
==
CMD_scscope
)
?
EXP_SCSCOPE_SUBCMD
:
EXP_CSCOPE_SUBCMD
;
/* (part of) subcommand already typed */
if
(
*
arg
!=
NUL
)
...
...
This diff is collapsed.
Click to expand it.
src/proto/if_cscope.pro
+
1
−
1
View file @
7bfef80f
/*
if_cscope.c
*/
char_u
*
get_cscope_name
__ARGS
((
expand_T
*
xp
,
int
idx
));
void
set_context_in_cscope_cmd
__ARGS
((
expand_T
*
xp
,
char_u
*
arg
));
void
set_context_in_cscope_cmd
__ARGS
((
expand_T
*
xp
,
char_u
*
arg
,
cmdidx_T
cmdidx
));
void
do_cscope
__ARGS
((
exarg_T
*
eap
));
void
do_scscope
__ARGS
((
exarg_T
*
eap
));
void
do_cstag
__ARGS
((
exarg_T
*
eap
));
...
...
This diff is collapsed.
Click to expand it.
src/version.c
+
2
−
0
View file @
7bfef80f
...
...
@@ -676,6 +676,8 @@ static char *(features[]) =
static
int
included_patches
[]
=
{
/* Add new patch number below this line */
/**/
156
,
/**/
155
,
/**/
...
...
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