Patch 8.2.2379

5 views
Skip to first unread message

Bram Moolenaar

unread,
Jan 20, 2021, 3:43:21 PM1/20/21
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- 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 ///
Reply all
Reply to author
Forward
0 new messages