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

Helix not refreshing UI after insert-output #9181

Closed
tdaron opened this issue Dec 28, 2023 · 4 comments · Fixed by #9271
Closed

Helix not refreshing UI after insert-output #9181

tdaron opened this issue Dec 28, 2023 · 4 comments · Fixed by #9271
Labels
C-bug Category: This is a bug

Comments

@tdaron
Copy link
Contributor

tdaron commented Dec 28, 2023

Summary

I currently have this simple keymap configuration:

"backspace" = l=[":hnew", ":insert-output man 3 printf","goto_file_start"]}

when i press backspace-l it opens a new buffer, correctly insert man output, but then the goto_file_start do not move my view to top of the file. I mean, i think it does but the ui is not refreshing, because if i then type on any key, then the helix view updates and i'm taken to the top of the file.

Reproduction Steps

In this gif i'm just pressing backspace-l , then i just press "g" key to show goto menu but as you can see, i'm only getting to the top of the file when pressing g

demo

Helix log

none pertinent i guess

Platform

Linux

Terminal Emulator

wezterm 20230712-072601-f4abf8fd

Installation Method

pacman

Helix Version

helix 23.10

@tdaron tdaron added the C-bug Category: This is a bug label Dec 28, 2023
@gyreas
Copy link

gyreas commented Dec 29, 2023

I'm able to reproduce this. Apparently, :insert-output doesn't "normalise" the buffer after dumping the output.

It's the same for tools that dump output larger than the relevant view

@prometheus-8
Copy link

@Kaporos what happens if you append :reload to the keymap?

@tdaron
Copy link
Contributor Author

tdaron commented Jan 1, 2024

@Kaporos what happens if you append :reload to the keymap?

I got an error "can't find file to reload from "[scratch]""

I also tried :redraw but didn't change anything

@gyreas
Copy link

gyreas commented Jan 1, 2024

I don't get this issue on the Android build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants