When I copy paste at the end of a line it works, but my cursor moves several
spaces to the right, after the text being copy pasted.

The reason is, that the number of tabs to the left of where I paste, is
calculated to a number of spaces, and this number of spaces is added to the
right

Do you have a fix for this?

In this example I show you tabs as #, spaces as ¤, cursor as &, CTRL+V as %
and my tabs is set to 4 spaces


Shown with # ¤ & %:
#If¤bStatus¤Then¤bStatus¤=¤Len(sExample)&

Shown in PsPad:
        If bStatus Then bStatus = Len(sExample)
        
        

        
If I want to add a comment on the above, which comment I maybe have from a
website, I put my cursor after Len(sExample), press 1 tab and writes     '  
More info on (and here I press CTRL+V in order to get the www.
        
        
Shown with # ¤ & %:
#If¤bStatus¤Then¤bStatus¤=¤Len(sExample)#'#More¤info¤on¤%www.¤¤¤¤¤

Odpovedet emailem