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
f1a6b216
Commit
f1a6b216
authored
Apr 03, 2008
by
Stefan Monnier
Browse files
(insert_from_buffer_1): Don't compare bytes in destination
buffer with byte-size of source buffer.
parent
ac1491a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
src/ChangeLog
src/ChangeLog
+5
-0
src/insdel.c
src/insdel.c
+1
-1
No files found.
src/ChangeLog
View file @
f1a6b216
2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
* insdel.c (insert_from_buffer_1): Don't compare bytes in destination
buffer with byte-size of source buffer.
2008-04-03 Chong Yidong <cyd@stupidchicken.com>
* callint.c (Fcall_interactively): Handle temporary region even
...
...
src/insdel.c
View file @
f1a6b216
...
...
@@ -1352,7 +1352,7 @@ insert_from_buffer_1 (buf, from, nchars, inherit)
/* Get the intervals for the part of the string we are inserting. */
intervals
=
BUF_INTERVALS
(
buf
);
if
(
outgoing_nbyte
s
<
BUF_Z
_BYTE
(
buf
)
-
BUF_BEG
_BYTE
(
buf
))
if
(
nchar
s
<
BUF_Z
(
buf
)
-
BUF_BEG
(
buf
))
{
if
(
buf
==
current_buffer
&&
PT
<=
from
)
from
+=
nchars
;
...
...
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