这是indexloc提供的服务,不要输入任何密码
Skip to content

Cannot copy text consisting only of whitespace #112

@ioistired

Description

@ioistired

Abstract

Strings consisting only of whitespace are not copied to the clipboard, and instead the clipboard is cleared.

Steps to reproduce

$ termux-clipboard-set TEST
$ termux-clipboard get
TEST
$ printf '\r\n\r\t\n \r' | termux-clipboard set
$ termux-clipboard-get

Expected output

A string identical to that passed to printf

Actual output

A single newline

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