Bug 570519 - Fix VariableTemplate offset/buffer

In case the default value is different from name, the insertion would
potentially behave incorrectly, showing variable name where default
value is expected, or inserting at wrong offset, erasing or keeping some
extra characters.

Change-Id: Ia5d4e47841a2272ce66e7e5a61b630eeadeaf13b
Also-By: Christoph Läubrich <laeubi@laeubi-soft.de>
Signed-off-by: Mickael Istria <mistria@redhat.com>
5 files changed