Bug 408564

Summary: Autocompletion only completes the current word using block selection with several lines
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: Raphaël Jakse <raphael.kde>
Component: multicursorAssignee: Sven Brauch <mail>
Status: RESOLVED DUPLICATE    
Severity: normal CC: a.samirh78
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: A video of the bug

Description Raphaël Jakse 2019-06-11 13:02:14 UTC
Created attachment 120784 [details]
A video of the bug

SUMMARY

When trying to use autocompletion while editing several lines at once, only the current line is autocompleted.

STEPS TO REPRODUCE
1. In Kate, type hello
2. Hit enter three times
3. enable block selection (Ctrl+Shift+B)
4. select the three empty lines (2×Shift+Up)
5. type "hel"
6. "hello" should be suggested in the autocompletion popup. If not, ctrl+space
7. Arrow down to the "hello", and then hit Enter


OBSERVED RESULT
Line 2 is autocompleted

EXPECTED RESULT
Line 2, 3 and 4 are autocompleted


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: On openSUSE Tumbleweed, Debian, Ubuntu…
KDE Plasma Version: 5.15.5
KDE Frameworks Version: 5.58.0
Qt Version: 5.13.3
Comment 1 Ahmad Samir 2019-06-17 16:27:33 UTC

*** This bug has been marked as a duplicate of bug 359763 ***