Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help wanted] Cannot paste anything from clipboard #767

Closed
pomozoff opened this issue Dec 12, 2017 · 5 comments
Closed

[Help wanted] Cannot paste anything from clipboard #767

pomozoff opened this issue Dec 12, 2017 · 5 comments
Labels
component:terminal Ncurses and terminal type:bug

Comments

@pomozoff
Copy link

Guys, it looks stupid but I can't paste anything from the clipboard in command mode, only the first char is pasted. Vim works fine in the same mode.
Could you explain to me what I'm doing wrong?

@pomozoff pomozoff changed the title Cannot paste anything from clipboard [Help Wanted] Cannot paste anything from clipboard Dec 12, 2017
@pomozoff pomozoff changed the title [Help Wanted] Cannot paste anything from clipboard [Help wanted] Cannot paste anything from clipboard Dec 12, 2017
@weichuliu
Copy link

+1 for getting the same issue.
I'm using macOS 10.12 and both Terminal/iTerm are having the same issue.

@corbie
Copy link

corbie commented Dec 14, 2017

+1 here too, macOS 10.12 and both Terminal/iTerm as above.

@jonas jonas added type:bug component:terminal Ncurses and terminal labels Dec 14, 2017
@jonas
Copy link
Owner

jonas commented Dec 14, 2017

Yes, easily reproducible with 2.3.0. Fixed in current master by #725 it seems.
I'll release a new version tonight or tomorrow.

@jonas
Copy link
Owner

jonas commented Dec 14, 2017

Correction, I can reproduce with the tig 2.3.0 version provided by brew.

@jonas
Copy link
Owner

jonas commented Dec 14, 2017

This one does not work:

> otool -L /usr/local/bin/tig
/usr/local/bin/tig:
        /usr/local/opt/readline/lib/libreadline.7.dylib (compatibility version 7.0.0, current version 7.0.0)
        /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
        /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.0.0)

This one works:

/opt/tig@(tig-2.3.0) > otool -L ./src/tig
./src/tig:
        /usr/local/opt/ncurses/lib/libncursesw.6.dylib (compatibility version 6.0.0, current version 6.0.0)
        /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
        /usr/local/opt/readline/lib/libreadline.7.dylib (compatibility version 7.0.0, current version 7.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.0.0)

The difference is the ncurses version, and notably the use of ncursesw.

jonas added a commit that referenced this issue Dec 14, 2017
Reverts part of c883298 to ensure
pasting into the prompt works for ncurses 5.4.

Fixes #767
jonas added a commit that referenced this issue Dec 14, 2017
Reverts part of c883298 to ensure
pasting into the prompt works for ncurses 5.4.

Fixes #767
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:terminal Ncurses and terminal type:bug
Projects
None yet
Development

No branches or pull requests

4 participants