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
ba1eeafa
Commit
ba1eeafa
authored
May 05, 2006
by
Kenichi Handa
Browse files
(handle_composition_prop): Fix for the case of empty
composition component.
parent
37e21325
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
src/xdisp.c
src/xdisp.c
+18
-0
No files found.
src/xdisp.c
View file @
ba1eeafa
...
...
@@ -4447,6 +4447,24 @@ handle_composition_prop (it)
if (id >= 0)
{
struct composition *cmp = composition_table[id];
if (cmp->glyph_len == 0)
{
/* No glyph. */
if (STRINGP (it->string))
{
IT_STRING_CHARPOS (*it) = end;
IT_STRING_BYTEPOS (*it) = string_char_to_byte (it->string,
end);
}
else
{
IT_CHARPOS (*it) = end;
IT_BYTEPOS (*it) = CHAR_TO_BYTE (end);
}
return HANDLED_RECOMPUTE_PROPS;
}
it->method = GET_FROM_COMPOSITION;
it->cmp_id = id;
it->cmp_len = COMPOSITION_LENGTH (prop);
...
...
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