Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/language/codecompletion/codecompletionworker.cpp
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Line(s) | 105 | else | |||
---|---|---|---|---|---|
106 | range = KTextEditor::Range(KTextEditor::Cursor(position.line(), 0), position); | 106 | range = KTextEditor::Range(KTextEditor::Cursor(position.line(), 0), position); | ||
107 | 107 | | |||
108 | updateContextRange(range, view, context); | 108 | updateContextRange(range, view, context); | ||
109 | 109 | | |||
110 | text = doc->text(range); | 110 | text = doc->text(range); | ||
111 | } | 111 | } | ||
112 | 112 | | |||
113 | if( position.column() == 0 ) //Seems like when the cursor is a the beginning of a line, kate does not give the \n | 113 | if( position.column() == 0 ) //Seems like when the cursor is a the beginning of a line, kate does not give the \n | ||
114 | text += '\n'; | 114 | text += QLatin1Char('\n'); | ||
115 | 115 | | |||
116 | if (aborting()) { | 116 | if (aborting()) { | ||
117 | failed(); | 117 | failed(); | ||
118 | return; | 118 | return; | ||
119 | } | 119 | } | ||
120 | m_hasFoundDeclarations = false; | 120 | m_hasFoundDeclarations = false; | ||
121 | 121 | | |||
122 | KTextEditor::Cursor cursorPosition = view->cursorPosition(); | 122 | KTextEditor::Cursor cursorPosition = view->cursorPosition(); | ||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |