wilder.nvim icon indicating copy to clipboard operation
wilder.nvim copied to clipboard

Popup renderer is a character behind for search and replace

Open rosejn opened this issue 2 years ago • 3 comments

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 avatar Jan 30 '23 18:01 rosejn

Did you ever find a solution to this?

ghost avatar Apr 20 '23 16:04 ghost

Same problem here

fortizc avatar Apr 28 '24 05:04 fortizc

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 ?

fortizc avatar Apr 29 '24 03:04 fortizc