projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65b3448
)
(find_field): Make an exception for nil fields.
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Fri, 1 Nov 2002 19:06:06 +0000
(19:06 +0000)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Fri, 1 Nov 2002 19:06:06 +0000
(19:06 +0000)
src/editfns.c
patch
|
blob
|
history
diff --git
a/src/editfns.c
b/src/editfns.c
index bf4976273aad22b39df48dc6eefa7bcb22930fb6..57c96ff78448f32f9f23fb96780539c88e7d681c 100644
(file)
--- a/
src/editfns.c
+++ b/
src/editfns.c
@@
-531,6
+531,12
@@
find_field (pos, merge_at_boundary, beg_limit, beg, end_limit, end)
at_field_end = 1;
if (!EQ (field, before_field))
at_field_start = 1;
+ if (NILP (field) && at_field_start && at_field_end)
+ /* If an inserted char would have a nil field while the surrounding
+ text is non-nil, we're probably not looking at a
+ zero-length field, but instead at a non-nil field that's
+ not intended for editing (such as comint's prompts). */
+ at_field_end = at_field_start = 0;
}
/* Note about special `boundary' fields: