mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-26 15:21:51 -08:00
(Fminibuffer_complete_word): Calculate string byte
size correctly.
This commit is contained in:
parent
54e67cf740
commit
54643b2c49
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue