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

Reload make duplicates for each colorscheme #3059

Closed
dustdfg opened this issue Nov 30, 2023 · 1 comment · Fixed by #3062
Closed

Reload make duplicates for each colorscheme #3059

dustdfg opened this issue Nov 30, 2023 · 1 comment · Fixed by #3062

Comments

@dustdfg
Copy link
Contributor

dustdfg commented Nov 30, 2023

Description of the problem or steps to reproduce

  1. Ctrl+e
  2. > set colorscheme + Tab (to see all the schemes in status line)
  3. > reload
  4. > set colorscheme + Tab (now you see duplicates of each colorscheme)

screen-1701339764

Specifications

Commit hash: v2.0.13 68d88b5; 2.0.14-dev.1 d8e9d61
OS: Debian 12
Terminal: foot

@JoeKar
Copy link
Collaborator

JoeKar commented Nov 30, 2023

I assume, that rtfiles.go#L42 should be called at the beginning of rtfiles.go#L162 to initialize the already filled slices again, otherwise this can end up in a memory leak, when you reload in an endless loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants