Skip to content

spell completion is wrong with fuzzy #18800

@habamax

Description

@habamax

Steps to reproduce

I am not sure if this is my thing only or it could be reproduced by others, @girishji, could you try to repro this?

  1. vim --clean
  2. :set completeopt+=fuzzy
  3. :set spell (probably default vim spell dictionaries needs to be installed?)
  4. Paste following text: The rigth thing
  5. Now press A<CTRL-X><CTRL-S>

Expected behaviour

Popup menu should appear with right being the first element selected.

However, it is not the first element:

Image

Without fuzzy it is.

Image

Version of Vim

9.1.1924

Environment

debian13, bash

Logs and stack traces

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions