Editor isn't working properly

My Editor is having some technical error. I can’t understand why it is adding some extra spaces between the last letter of a line and cursor. And the increases with an increase in the length of the line… #help_please