Fix completion when user already typed part of suggestion#42
Fix completion when user already typed part of suggestion#42klew wants to merge 0 commit intoExafunction:mainfrom
Conversation
|
@klew do you happen to have an example completion where this was being buggy for me to test? |
|
@pqn I had some troubles in understandnig when this part of code should execute. For sure current code is not correct, because this method expects length as third parameter and, based on context, you wanted to get part of string between two indexes (between two columns). One simple example where current code (with "cursor_col - 1") gives wrong behavior (set ft=cpp) : "#" is a cursor. It is important to provide empty line above, because otherwise there are no suggestions. |
|
Ah I see the problem. I'll try to push a fix for this soon. |
|
I think #44 has likely resolved your issues, feel free to check. |
|
It fixed that problem I shown in previous comment, however now it seems to interfere too much when I type or use backspace. During typing, it enters chars at the end of line, then redraw it correctly. Here is short video showing this behavior: Screencast.2023-01-28.22.55.35.mp4 |

strpart function takes "length" as a third parameter. Previous implmentation was using index.