I've seen a few IDEs like IAR embedded workbench or MikroC-pro from mikroelektronika, that when you click on a line, the cursor doesn't go to the last character. instead, it just sits right there on the white space. the problem seems to be same as this one :
How do I get my cursor to jump to the last character on a line?
but I can't find similar options or any other relevant option to do that. I've included a few screenshots from MikroC editor options dialog:
and after open options dialog under advanced editor options:



On IAR Embedded Workbench IDE, select
Tools > Options...in top menu. This opens IDE Options dialog. SelectEditornode on the tree on the left side of the dialog, then uncheckEnable virtual spacecheckbox. Finally click OK to apply changes.On MikroC, disable
Scroll past end of linecheckbox on Editor options dialog Options tab.