Zencoding: Fixes cursor issue (#682)

* Zencoding: Fixes cursor issue (#682).  
*  Code: Formatting and Analysis.
* Zencoding: Simplify condition.