From kdevelop-bugs Thu Apr 28 11:58:35 2005 From: kdevelop-bugs-admin () barney ! cs ! uni-potsdam ! de Date: Thu, 28 Apr 2005 11:58:35 +0000 To: kdevelop-bugs Subject: [Bug 104699] New: code completion inserts the completed name at the top of the file instead at the c Message-Id: <20050428135834.104699.te () profzone ! ch> X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=118306936407024 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. http://bugs.kde.org/show_bug.cgi?id=104699 Summary: code completion inserts the completed name at the top of the file instead at the cursor position if the completion has only one choice from the beginning. Product: kdevelop Version: CVS Platform: unspecified OS/Version: Linux Status: NEW Severity: normal Priority: NOR Component: general AssignedTo: kdevelop-bugs kdevelop org ReportedBy: te profzone ch Version: CVS (using KDE 3.3.0, SuSE) Compiler: gcc version 3.3.4 (pre 3.3.5 20040809) OS: Linux (i686) release 2.6.8-24.14-default If there is only one possibility in a code completion from beginning, the completed text was inserted at position 0, 0. Background: The code part, that checks if only one true match exists, uses the member variables m_ccLine and m_ccColumn to get the position where the text should be inserted. This variables are set in the slot "slotTextChanged()". But if there is only one match, "slotTextChanged" is never called. So both variables are still on 0,0.