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

Trying to go past the right side of window in vim mode crashes. #917

Closed
Utkarsh-khambra opened this issue Dec 17, 2022 · 3 comments · Fixed by #920
Closed

Trying to go past the right side of window in vim mode crashes. #917

Utkarsh-khambra opened this issue Dec 17, 2022 · 3 comments · Fixed by #920
Labels
bug Something isn't working

Comments

@Utkarsh-khambra
Copy link
Collaborator

Contour Terminal version

Contour Terminal Emulator 0.3.8-master-5097e75c

Installer source

Github: source code cloned

Operating System

Fedora 37

Architecture

x86-64

Other Software

No response

Steps to reproduce

  1. Switch to vim mode.
  2. Go to right side of window and press L a bunch of times.

Expected Behavior

Cursor should stay on the right side

Actual Behavior

Contour crashes with this

terminate called after throwing an instance of 'std::out_of_range'
  what():  vector::_M_range_check: __n (which is 80) >= this->size() (which is 80)

Additional notes

No response

@Utkarsh-khambra Utkarsh-khambra added the bug Something isn't working label Dec 17, 2022
@christianparpart
Copy link
Member

I can fix that asap. Thanks. :)

@elmarsan
Copy link
Contributor

Hello.
I'm experimenting the same issue. (Using vi and nvim)
vim-exit.webm

@Yaraslaut
Copy link
Member

Hello,
Thanks for the report, i think it might be connected with terminfo file and TERM variable, check this part of documentation : http://contour-terminal.org/install/?h=terminfo#installing-from-source
you need to ensure that contour can set TERM=contour on startup, you can check if echo $TERM gives you contour and not something like xterm, locally I can not reproduce results from your video.
If it does not solve this issues or you are having problems settings things up please open new issue, since this one contains description of the crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants