Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-133351: Fix Cmd completion for lines beginning with!#133362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

godlygeek
Copy link
Contributor

@godlygeekgodlygeek commentedMay 4, 2025
edited by bedevere-appbot
Loading

When a line begins with! and there's nodo_shell method defined,parsecmd returnsNone as thecmd, which incorrectly leads toNone being concatenated tocomplete_ and triggering aTypeError.

Instead, recognizeNone as a sentinel that means we should callcompletedefault, as an empty string already is.

When a line begins with `!` and there's no `do_shell` method defined,`parsecmd` returns `None` as the `cmd`, which incorrectly leads to`None` being concatenated to `complete_` and triggering a `TypeError`.Instead, recognize `None` as a sentinel that means we should call`completedefault`, as an empty string already is.
@godlygeek
Copy link
ContributorAuthor

Actually, let me close this and open a new issue for it, since this probably deserves a real news entry unrelated to PDB...

@gaogaotiantian
Copy link
Member

You can just change the gh issue number.

@godlygeek
Copy link
ContributorAuthor

Too late, I wasn't sure so I opened#133364 😓

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@godlygeek@gaogaotiantian

[8]ページ先頭

©2009-2025 Movatter.jp