Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
20773569
Commit
20773569
authored
Feb 20, 1998
by
Kenichi Handa
Browse files
(advance_to_char_boundary): Make the behaviour
consistent with INC_POS.
parent
39a68837
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
src/buffer.c
src/buffer.c
+5
-11
No files found.
src/buffer.c
View file @
20773569
...
...
@@ -1679,21 +1679,15 @@ static int
advance_to_char_boundary
(
byte_pos
)
int
byte_pos
;
{
int
pos
=
byte_pos
;
int
c
=
FETCH_BYTE
(
byte_pos
)
;
while
(
1
)
while
(
!
CHAR_HEAD_P
(
c
)
)
{
int
c
=
FETCH_BYTE
(
pos
);
if
(
SINGLE_BYTE_CHAR_P
(
c
))
break
;
if
(
c
==
LEADING_CODE_COMPOSITION
)
break
;
if
(
BYTES_BY_CHAR_HEAD
(
c
)
>
1
)
break
;
pos
++
;
byte_pos
++
;
c
=
FETCH_BYTE
(
byte_pos
);
}
return
pos
;
return
byte_
pos
;
}
DEFUN
(
"set-buffer-multibyte"
,
Fset_buffer_multibyte
,
Sset_buffer_multibyte
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment