Skip to content

Clipboard erorr check isn't after method that can cause it #3081

@dustdfg

Description

@dustdfg

Description of the problem or steps to reproduce

https://github.com/zyedidia/micro/blob/d8e9d61a955edf6f58c1533012d8a25728ba65be/cmd/micro/micro.go#L289-L290

https://github.com/zyedidia/micro/blob/d8e9d61a955edf6f58c1533012d8a25728ba65be/cmd/micro/micro.go#L351-L353

Between attempt to create clipboard and check if it was correct are nearly ~60 lines of code. I don't know if it is for purpose but I didn't so clipboard use between those place (and it shouldn't be because error could occur). One of the parts should be moved next to another? ¯\_(ツ)_/¯

Specifications

Commit hash: d8e9d61

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions