Skip to content

templates/cibuglog_query_input: fix autocompletion cursor

Piotr Kira requested to merge user_query_editor_fix into master

Inserting of autocompletion suggestions doesn't work properly when one edits query in the middle. findWordAt actually returns "empty string" when space is before (it checks if there is word/text after cursor, if not it checks what's before it). It works properly when creating new user query because there are no spaces before cursor. That change fixes that small issue.

Merge request reports