fix for vertical alignment of 'if (foo ||' in cpp mode
fix off-by-one error in 'moveToPosition'