micro-editor / micro-editor/micro

replace doesn't terminate after addressing each match once

Open
#2,324 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
29.6k
Forks
1.4k
Avg merge
2d 18h
Merged PRs (30d)
10

Description

Description of the problem or steps to reproduce

In nano, if I do a Ctrl-W search and replace, after I have done one round of y/n of all instances in the file, the search terminates.

In comparison, micro will continue forever.

Specifications

Commit hash: b9763856
OS: Ubuntu 14.04
Terminal: tmux in ssh in konsole

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

Start by reproducing the Ctrl-W search-and-replace flow described in the issue at commit b9763856, using the reported Ubuntu, tmux, SSH, and Konsole setup if available. Compare micro's behavior with nano after answering y/n for every match; done means the replacement stops after one pass instead of continuing indefinitely.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.