diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-10-08 20:39:29 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-10-08 20:39:29 +0000 |
commit | 5a9c0bca4504eeda45a3fd0ae1c244b2994f38b2 (patch) | |
tree | b8183382037c3d57c3f4b632aaaa351aab161295 /tools/libclang/CIndexCodeCompletion.cpp | |
parent | db45871a17106c33fb91ab7992b4e3badaa45194 (diff) |
Fix the mapping of vertical-space cursor kinds to produce a newline,
rather than a space.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116097 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/CIndexCodeCompletion.cpp')
-rw-r--r-- | tools/libclang/CIndexCodeCompletion.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/libclang/CIndexCodeCompletion.cpp b/tools/libclang/CIndexCodeCompletion.cpp index e473384813..f33fdbe5f7 100644 --- a/tools/libclang/CIndexCodeCompletion.cpp +++ b/tools/libclang/CIndexCodeCompletion.cpp @@ -146,11 +146,8 @@ CXString clang_getCompletionChunkText(CXCompletionString completion_string, case CodeCompletionString::CK_SemiColon: case CodeCompletionString::CK_Equal: case CodeCompletionString::CK_HorizontalSpace: - return createCXString((*CCStr)[chunk_number].Text, false); - case CodeCompletionString::CK_VerticalSpace: - // FIXME: Temporary hack until we figure out how to handle vertical space. - return createCXString(" "); + return createCXString((*CCStr)[chunk_number].Text, false); case CodeCompletionString::CK_Optional: // Note: treated as an empty text block. |