teemperor added a comment.

I'm not hitting the same bug here, but I do hit a different bug. If I have a 
autosuggestion and then type another character that causes a shorter 
autosuggestion to display, then the old text of the autosuggestion is not 
deleted from the terminal.

For example:

  > ./build/bin/lldb -o "settings set show-autosuggestion true"
  (lldb) settings set show-autosuggestion true
  (lldb) help frame var
  [...]
  (lldb) help frame info
  [...]
  (lldb) help frame v[aro]

[ ] is the grey text.

"help frame " correctly shows "help frame var info" which is the last command, 
but typing the "v" will cause that only "help frame var" is left as a valid 
autosuggestion. However the "o" from "info" is not clear, but only the "inf" 
part ovewritten with "var".

Tbh, I'm not sure what's the best fix for this. I don't think we can clear all 
following characters in the line with some control character (correct me if I'm 
wrong). We could adding spaces into the autosuggestion string to fill the rest 
of the line though (this way the old characters in the buffer are getting 
ovewritten).


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81001/new/

https://reviews.llvm.org/D81001

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to