[ring] Rename variables for readability

Patch from Egmont Koblinger.

Part of Bug 708496 - Lines disappear after positioning back the cursor
Bug 708496 - Lines disappear after positioning back the cursor

Patch from Egmont Koblinger.