https://bugs.kde.org/show_bug.cgi?id=373008
Bug ID: 373008 Summary: kate/kwrite autocomplete typecast in ternary deletes variable after conditional Product: kate Version: 16.08 Platform: Other OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: kwrite-bugs-n...@kde.org Reporter: drankina...@suddenlinkmail.com Target Milestone: --- In kate/kwrite in a C source, attempting to insert a typecast before the variable name in the 'true condition' of a ternary causes autocomplete to overwrite/delete the variable name. This is reproducible 100% of the time. Example, save the following a as a C-source file (e.g. bug.c) /* attempt to insert (ssize_t) as typecast following '?' with autocomplete * will cause autocomplete to delete 'idx' resulting in: * * return idx ? (ssize_t : -1; * * after accepting the proposed autocomplete */ return idx ? idx : -1; Now, with autocomplete enabled, attempt to insert '(ssize_t)' prior to the 'idx' following the '?'. [ e.g. start typing '(ssiidx' ] When autocomplete suggests 'ssize_t in the autocomplete window, hit 'return' to accept the proposal. 'idx' is delete leaving only: return idx ? (ssize_t : -1; -- You are receiving this mail because: You are watching all bug changes.