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
fdf732ee
Commit
fdf732ee
authored
14 years ago
by
Bram Moolenaar
Browse files
Options
Downloads
Patches
Plain Diff
Fix build broken without multi-byte feature.
parent
7c86f4cc
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/normal.c
+8
-4
8 additions, 4 deletions
src/normal.c
with
8 additions
and
4 deletions
src/normal.c
+
8
−
4
View file @
fdf732ee
...
@@ -3766,16 +3766,16 @@ clear_showcmd()
...
@@ -3766,16 +3766,16 @@ clear_showcmd()
if
(
VIsual_mode
==
Ctrl_V
)
if
(
VIsual_mode
==
Ctrl_V
)
{
{
#ifdef FEAT_LINEBREAK
#
ifdef FEAT_LINEBREAK
char_u
*
saved_sbr
=
p_sbr
;
char_u
*
saved_sbr
=
p_sbr
;
/* Make 'sbr' empty for a moment to get the correct size. */
/* Make 'sbr' empty for a moment to get the correct size. */
p_sbr
=
empty_option
;
p_sbr
=
empty_option
;
#endif
#
endif
getvcols
(
curwin
,
&
curwin
->
w_cursor
,
&
VIsual
,
&
leftcol
,
&
rightcol
);
getvcols
(
curwin
,
&
curwin
->
w_cursor
,
&
VIsual
,
&
leftcol
,
&
rightcol
);
#ifdef FEAT_LINEBREAK
#
ifdef FEAT_LINEBREAK
p_sbr
=
saved_sbr
;
p_sbr
=
saved_sbr
;
#endif
#
endif
sprintf
((
char
*
)
showcmd_buf
,
"%ldx%ld"
,
lines
,
sprintf
((
char
*
)
showcmd_buf
,
"%ldx%ld"
,
lines
,
(
long
)(
rightcol
-
leftcol
+
1
));
(
long
)(
rightcol
-
leftcol
+
1
));
}
}
...
@@ -3800,7 +3800,11 @@ clear_showcmd()
...
@@ -3800,7 +3800,11 @@ clear_showcmd()
}
}
while
((
*
p_sel
!=
'e'
)
?
s
<=
e
:
s
<
e
)
while
((
*
p_sel
!=
'e'
)
?
s
<=
e
:
s
<
e
)
{
{
# ifdef FEAT_MBYTE
l
=
(
*
mb_ptr2len
)(
s
);
l
=
(
*
mb_ptr2len
)(
s
);
# else
l
=
(
*
s
==
NUL
)
?
0
:
1
;
# endif
if
(
l
==
0
)
if
(
l
==
0
)
{
{
++
bytes
;
++
bytes
;
...
...
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