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
5ae07613
Commit
5ae07613
authored
Apr 17, 1998
by
Richard M. Stallman
Browse files
(readchar): Find the previous byte's address properly
for the buffer case, as for the marker case.
parent
4e6724a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/lread.c
src/lread.c
+6
-2
No files found.
src/lread.c
View file @
5ae07613
...
...
@@ -218,8 +218,12 @@ readchar (readcharfun)
readchar_backlog
=
bytepos
-
orig_bytepos
;
}
return
*
(
BUF_BEG_ADDR
(
inbuffer
)
+
XMARKER
(
readcharfun
)
->
bytepos
-
readchar_backlog
--
);
/* We get the address of the byte just passed,
which is the last byte of the character.
The other bytes in this character are consecutive with it,
because the gap can't be in the middle of a character. */
return
*
(
BUF_BYTE_ADDRESS
(
inbuffer
,
XMARKER
(
readcharfun
)
->
bytepos
-
1
)
-
--
readchar_backlog
);
}
if
(
EQ
(
readcharfun
,
Qget_file_char
))
{
...
...
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