You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In WeeChat 3.0, if a misspelling occured in the previous line sent to a buffer, the text input field will continue to show suggestions for that misspelling in the now-empty input buffer.
Steps to reproduce
Set spell.check.enabled = on
Set input.items = "[input_prompt]+(away),[input_search],[input_paste],input_text,[spell_suggest]"
Send text with a detected misspelling to a buffer
Current behavior
Before sending text to a buffer, for example "weechat has a regression", the following is seen in the input field:
[@nick(ZiQw)] weechat has a regression [wee chat,wee-chat,Wichita]
After sending to the buffer, the following is seen in the input field:
[@nick(ZiQw)] [wee chat,wee-chat,Wichita]
Redrawing the window with Ctrl-L has no effect, nor does switching between buffers. Hitting space (and optionally, backspace) hides the suggestions.
Expected behavior
After sending the text to the buffer, the following should be seen, even if a misspelling was detected:
… empty (issue #1586)
When the input is empty, length of string is zero: when sending zero to
function weechat_string_dyn_alloc, the function returns NULL and therefore we
return immediately instead of handling the empty input, which is a valid value.
The regression was introduced by the use of dynamic strings, commit:
299f74b
(cherry picked from commit eb90a73)
Bug summary
In WeeChat 3.0, if a misspelling occured in the previous line sent to a buffer, the text input field will continue to show suggestions for that misspelling in the now-empty input buffer.
Steps to reproduce
spell.check.enabled = on
input.items = "[input_prompt]+(away),[input_search],[input_paste],input_text,[spell_suggest]"
Current behavior
Before sending text to a buffer, for example "weechat has a regression", the following is seen in the input field:
[@nick(ZiQw)] weechat has a regression [wee chat,wee-chat,Wichita]
After sending to the buffer, the following is seen in the input field:
[@nick(ZiQw)] [wee chat,wee-chat,Wichita]
Redrawing the window with Ctrl-L has no effect, nor does switching between buffers. Hitting space (and optionally, backspace) hides the suggestions.
Expected behavior
After sending the text to the buffer, the following should be seen, even if a misspelling was detected:
[@nick(ZiQw)]
Suggested solutions
Maybe 299f74b is related. I haven't bisected.
Additional information
2.9 was unaffected.
spell.conf:
Compiled using dpkg-buildpkg with the following in debian/rules:
The text was updated successfully, but these errors were encountered: