Fix insertion color. Determine which case is to be applied on insertion.
Merge branch 'master' of https://github.com/asthas/code