nushell / nushell/nushell

Location of prompt gets weird after window change

Open
#9,319 15 comments 11 reactions 1 assignee View on GitHub

@danielsomerfield is already working on this.

Since Dec 1, 2023.

A:line-editor deprecated:duplicate status:needs-triage
Dominant language
Rust
Stars
40.5k
Forks
2.3k
Avg merge
1d 19h
Merged PRs (30d)
85

Description

Describe the bug

This occurs while starting a terminal with nushell in swaywm, then changing the windows, e.g. moving the terminal window from the bottom to the right, Location of the prompt jumps to the y-axis position of the terminal's cursor relative to the screen before the window movement after one keystroke.

Maybe sophisticated to describe, later shown in a video.

Tested with and without enabling starship.

wm: sway 1.8.1
os: NixOS 23.11.20230527.e108023

tested terminal:

  • alacritty 0.12.1
  • foot 1.14.0

bash zsh fish all've no this issue in my environment.

How to reproduce

shows in the video below.

v

The prompt jumps into the bottom after one keystroke.

Expected behavior

Works as other shells.

Screenshots

No response

Configuration
key value
version 0.80.0
branch
commit_hash
build_os linux-x86_64
build_target x86_64-unknown-linux-gnu
rust_version rustc 1.69.0 (84c898d65 2023-04-16) (built from a source tarball)
cargo_version cargo 1.69.0
build_time 1980-01-01 00:00:00 +00:00
build_rust_channel release
features default, zip
installed_plugins
Additional context

nushell configuration:
https://github.com/oluceps/nixos-config/blob/main/home/programs/nu/config.nu
https://github.com/oluceps/nixos-config/blob/main/home/programs/nu/env.nu

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.