mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-12 09:28:24 +00:00
(unreadchar): Don't back up the pointer when unreading EOF.
This commit is contained in:
parent
f943104adb
commit
92fddec9eb
@ -165,7 +165,11 @@ unreadchar (readcharfun, c)
|
||||
Lisp_Object readcharfun;
|
||||
int c;
|
||||
{
|
||||
if (XTYPE (readcharfun) == Lisp_Buffer)
|
||||
if (c == -1)
|
||||
/* Don't back up the pointer if we're unreading the end-of-input mark,
|
||||
since readchar didn't advance it when we read it. */
|
||||
;
|
||||
else if (XTYPE (readcharfun) == Lisp_Buffer)
|
||||
{
|
||||
if (XBUFFER (readcharfun) == current_buffer)
|
||||
SET_PT (point - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user