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

Popup renderer is a character behind for search and replace #175

Open
rosejn opened this issue Jan 30, 2023 · 3 comments
Open

Popup renderer is a character behind for search and replace #175

rosejn opened this issue Jan 30, 2023 · 3 comments

Comments

@rosejn
Copy link

rosejn commented Jan 30, 2023

When doing a :%s/foo/bar search and replace using the popupmenu_renderer after the first / character the popup display of the current command is one character behind. The search and replace still works, but it isn't properly reflected in the popup.

@rosejn rosejn changed the title Problems with Search and Replace in popup Popup renderer is a character behind for search and replace Jan 30, 2023
@ghost
Copy link

ghost commented Apr 20, 2023

Did you ever find a solution to this?

@fortizc
Copy link

fortizc commented Apr 28, 2024

Same problem here

@fortizc
Copy link

fortizc commented Apr 29, 2024

A small update:
It seems the problem happen when we type :s plus any characters different from a-z or A-Z or 0-9

I was reading the code and I tried a few things to understand the problem:

  1. I checked the status structure, ctx and others structures without noticing nothing abnormal
  2. I tried to modify the cmdline string, and I was able to modify what Wilder shows, but the error still remains
  3. Finally I tried to check if redraw is called correctly and it is... try also added some extra redraws but isn't working

Any ideas @gelguy ?

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

No branches or pull requests

2 participants