[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/languages/cpp
From: Tobias Erbsland <te () profzone ! ch>
Date: 2005-04-28 12:15:48
Message-ID: 20050428121548.3B058668 () office ! kde ! org
[Download RAW message or body]
CVS commit by erbsland:
BUG: 104699
M +5 -1 cppcodecompletion.cpp 1.169
--- kdevelop/languages/cpp/cppcodecompletion.cpp #1.168:1.169
@@ -1256,6 +1256,10 @@ void CppCodeCompletion::completeText( bo
if ( invokedOnDemand && trueMatches.size() == 1 )
{
+ // erbsland: get the cursor position now, because m_ccLine and m_ccColumn
+ // are not set until the first typed char.
+ unsigned int nLine, nCol;
+ m_activeCursor->cursorPositionReal( &nLine, &nCol );
// there is only one entry -> complete immediately
- m_activeEditor->insertText( m_ccLine, m_ccColumn,
+ m_activeEditor->insertText( nLine, nCol,
trueMatches[0].right( trueMatches[0].length() - word.length() ) );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic