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
2db1186a
Commit
2db1186a
authored
Nov 01, 2002
by
Stefan Monnier
Browse files
(find_field): Make an exception for nil fields.
parent
65b34485
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/editfns.c
src/editfns.c
+6
-0
No files found.
src/editfns.c
View file @
2db1186a
...
...
@@ -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:
...
...
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