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

type(getchar()) return 1 for < #12487

Closed
wsdjeg opened this issue Jun 13, 2020 · 4 comments
Closed

type(getchar()) return 1 for < #12487

wsdjeg opened this issue Jun 13, 2020 · 4 comments
Labels
bug issues reporting wrong behavior gui platform:windows

Comments

@wsdjeg
Copy link
Contributor

wsdjeg commented Jun 13, 2020

  • nvim --version: NVIM v0.5.0-345-g0b49cb67f
  • vim -u DEFAULTS (version: ) behaves differently? yeah
  • Operating system/version: win7
  • Terminal name/version: NO
  • $TERM: NO

Steps to reproduce using nvim -u NORC

nvim -u NORC
# Alternative for shell-related problems:
# env -i TERM=ansi-256color "$(which nvim)"
:echo type(getchar())
press <

Actual behaviour

it should print 0, but it is 1 in nvim

Expected behaviour

this should same as vim

@wsdjeg wsdjeg added the bug issues reporting wrong behavior label Jun 13, 2020
@glacambre
Copy link
Member

glacambre commented Jun 13, 2020 via email

@mhinz
Copy link
Member

mhinz commented Jun 13, 2020

From Gitter:

getchar() and < returns 60 on macOS, but in this case, <80><fc>^B on Windows.

wsdjeg added a commit to SpaceVim/SpaceVim that referenced this issue Jun 13, 2020
@erw7
Copy link
Contributor

erw7 commented Jun 13, 2020

I checked and nvim-qt is sending "<S-lt>". Therefore, I think this is a problem with nvim-qt, not neovim.

@justinmk
Copy link
Member

justinmk commented Sep 8, 2020

Looks like this was fixed in equalsraf/neovim-qt#134 .

Test with neovim-qt v0.2.16.1 (or later) https://github.com/equalsraf/neovim-qt/releases/tag/v0.2.16.1

@justinmk justinmk closed this as completed Sep 8, 2020
@justinmk justinmk added the gui label Sep 8, 2020
@justinmk justinmk changed the title type(getchar()) return 1 for < type(getchar()) return 1 for < Sep 8, 2020
adelin-b pushed a commit to adelin-b/SpaceVim that referenced this issue Oct 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issues reporting wrong behavior gui platform:windows
Projects
None yet
Development

No branches or pull requests

5 participants