Patch 8.2.2379
Problem: Finding spell suggestions twice if 'spellsuggest' contains number.
Solution: Only do internal suggestions once. (closes #7713)
Files: src/spellsuggest.c
*** ../vim-8.2.2378/src/spellsuggest.c 2020-09-02 10:25:41.863436972 +0200
--- src/spellsuggest.c 2021-01-20 21:42:03.969621219 +0100
***************
*** 770,775 ****
--- 770,776 ----
int c;
int i;
langp_T *lp;
+ int did_intern = FALSE;
// Set the info in "*su".
CLEAR_POINTER(su);
***************
*** 863,874 ****
else if (STRNCMP(buf, "file:", 5) == 0)
// Use list of suggestions in a file.
spell_suggest_file(su, buf + 5);
! else
{
! // Use internal method.
spell_suggest_intern(su, interactive);
if (sps_flags & SPS_DOUBLE)
do_combine = TRUE;
}
}
--- 864,876 ----
else if (STRNCMP(buf, "file:", 5) == 0)
// Use list of suggestions in a file.
spell_suggest_file(su, buf + 5);
! else if (!did_intern)
{
! // Use internal method once.
spell_suggest_intern(su, interactive);
if (sps_flags & SPS_DOUBLE)
do_combine = TRUE;
+ did_intern = TRUE;
}
}
*** ../vim-8.2.2378/src/version.c 2021-01-20 21:23:10.709286927 +0100
--- src/version.c 2021-01-20 21:34:12.263030643 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2379,
/**/
--
hundred-and-one symptoms of being an internet addict:
191. You rate eating establishments not by the quality of the food,
but by the availability of electrical outlets for your PowerBook.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202101202043.10KKhEDF1681743%40masaka.moolenaar.net.