这是indexloc提供的服务,不要输入任何密码
Skip to content

Can move index of search string (Input value) with arrow keys, but visible cursor stays at end of string #92

@lukeflo

Description

@lukeflo

Describe the bug

If you hit / in one of the tabs Static, Dynamic and Strings, which open a search prompt at the bottom border, you can type a search pattern. Its also possible to move the index of state.input.value using the arrow keys; e.g. to change an intermediate typo. But the visible cursor block doesn't move with the index. It always stays at the end of the string. Thus, its hard to guess which character you're at.

To reproduce

Just run the binary or cargo run, select one of the mentioned tabs, type a search pattern, move back some index fields with the arrow keys and try inserting or deleting an intermediate character.

Software information

  • Operating system: Void GNU/Linux x86_64 6.6.58_1
  • Rust version: rustc 1.82.0 (f6e511eec 2024-10-15)
  • Project version: 0.2.1

Edit

Opened a PR (#93) which makes the cursor move with the index. But its not perfect in terms of rendering. You might have a look yourself...

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions