HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54e67cf
)
(Fminibuffer_complete_word): Calculate string byte
author
Kenichi Handa
<handa@m17n.org>
Thu, 30 Sep 1999 04:19:45 +0000
(
04:19
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Thu, 30 Sep 1999 04:19:45 +0000
(
04:19
+0000)
size correctly.
src/minibuf.c
patch
|
blob
|
blame
|
history
diff --git
a/src/minibuf.c
b/src/minibuf.c
index
ee3fbef
..
033c598
100644
(file)
--- a/
src/minibuf.c
+++ b/
src/minibuf.c
@@
-1833,12
+1833,12
@@
Return nil if there is no valid completion, else t.")
i gets index in string of where to stop completing. */
{
int len, c;
-
+ int bytes = STRING_BYTES (XSTRING (completion));
completion_string = XSTRING (completion)->data;
for (; i_byte < STRING_BYTES (XSTRING (completion)); i_byte += len, i++)
{
c = STRING_CHAR_AND_LENGTH (completion_string + i_byte,
-
XSTRING (completion)->size
- i_byte,
+
bytes
- i_byte,
len);
if (SYNTAX (c) != Sword)
{