lobehub / lobe-cli-toolbox

🪀 Lobe CLI Toolbox - AI CLI Toolbox, enhancing git commit and i18n workflow efficiency

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prompt input is not at cursor

picobyte opened this issue · comments

commented

When i change the prompt by editing, the prompt display and cursor position go out of sync. The prompt wraps differently than is diplayed. If you thereafter place the cursor at a different position, what you type does not end up where you placed the cursor. You can 'fix' this by resizing the prompt box, and then the prompt wrapping will fix itself and then you can type again. My language for the prompt is English. It is not very far off, so maybe it's just an off-by-one for the word wrapping position.
I once worked on an ren'py editor and recall having something similar at one point. It is probably not going to help but that code is here:
edit_button.rpy

commented

wrong location