With the inner curly bracket text object, try to leave the closing bracket on its own line, as with vim

Review Request #106847 - Created Oct. 14, 2012 and submitted - Latest diff uploaded

Simon St James
When doing a ciw/ diw or suchlike, vim tries to leave the closing bracket on its own line if it was on a different line to the opening bracket originally, whereas Kate currently just deletes all characters between them, ending up with "{}".

This patch emulates the vim way of doing things, and also fixes a logic flaw in innerRange(...) which this fix exposed.  Also fixes another bug in Kate's vim mode where doing a diw on


had no effect.
New tests added; no old tests broken.