JetBrains/kotlin — pull request #36 by spikefu (2012-04-03 12:23:35+00:00)
Title: Fix for: KT-1403 Code completion for keywords when replacing another keyword should not double spaces

Not really sure if this is the right approach, or if there might be side effects I am unaware of, but it seems to work.