Skip to content

Prevent access of nil value if trying to change_cwd on no selection#426

Open
hiimsergey wants to merge 1 commit intonvim-telescope:masterfrom
hiimsergey:master
Open

Prevent access of nil value if trying to change_cwd on no selection#426
hiimsergey wants to merge 1 commit intonvim-telescope:masterfrom
hiimsergey:master

Conversation

@hiimsergey
Copy link
Copy Markdown

If your prompt is garbage (i.e. not a file/dir in your cwd) and try to run fb_actions.change_cwd, you get E5108 (attempt to index a nil value).
This code just adds nil-guarding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant