Skip to content

:Gitsigns diffthis generates an error about awrap being nil. #857

@rawlingsr

Description

@rawlingsr

Description

I think I can see why this error is generated. awrap is not the key that's needed from async.

5a2b120

Neovim version

NVIM v0.10.0-dev-869+g1d6c4ad07

Operating system and version

Windows 11

Expected behavior

Diff of working copy of current file, and the index is shown.

Actual behavior

No diff after the error shows up, and trying again results in an error indicating that an error was encountered on a previous loop.

Minimal config

Obviated

Steps to reproduce

  1. Update to the latest version of Gitsigns.
  2. :Gitsigns diffthis
  3. Observe Error
  4. Change awrap to wrap on line 12 of lua/gitsigns/diffthis.lua
  5. restart neovim, or source the file
  6. diffthis works now.

Gitsigns debug messages

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions