ruby / ruby/reline

Completion dialog is not updated when searching with ed_search_*_history

Open
#523 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Ruby
Stars
311
Forks
99
Avg merge
6d 4h
Merged PRs (30d)
1

Description

Steps to reproduce

  1. Type aa=0
  2. Enter
  3. Type a
  4. Type PgUp
  5. You can search from history, but the completion dialog is not updated.

https://user-images.githubusercontent.com/52617472/226948562-f816bed5-2257-422e-b4d2-19387486a2a4.mp4

Expected behavior

As with the normal up/down keys, the completion dialog is updated.

irb_info

I used Reline HEAD (https://github.com/ruby/reline/commit/3aeea2ad4e7c06d4ccb36548a18ef091b12cd4e1) and IRB HEAD (https://github.com/ruby/irb/commit/52b79806ea6d46e4b43b24277d00add204ae127a).

irb(main):003:0> irb_info
=>
Ruby version: 3.3.0
IRB version: irb 1.6.3 (2023-03-06)
InputMethod: RelineInputMethod with Reline 0.3.2
.irbrc path: /Users/mi/.irbrc
RUBY_PLATFORM: x86_64-darwin21
East Asian Ambiguous Width: 1

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Reproduce the sequence in Reline: enter aa=0, press Enter, type a, then PgUp to search history through ed_search_*_history. Compare the completion dialog with the normal up/down-key behavior. Done means the dialog updates during history searches in the same way as it does for normal navigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.