Then you should post the exact steps needed to reproduce the problem on a simple example file.
Consider this:
#include <stdlib.h>
#include <stdio.h>
const static char SI[]="name.ex";
int main(int argc, char *argv[])
{
int i = 0;
for (i = 0; i < argc; i++) {
printf("argv[%d] = %s\n", i, argv[i]);
}
printf("%s \n",SI);
return EXIT_SUCCESS;
}
Now I click to the end of last printf and I press Enter:
#include <stdlib.h>
#include <stdio.h>
const static char SI[]="name.ex";
int main(int argc, char *argv[])
{
int i = 0;
for (i = 0; i < argc; i++) {
printf("argv[%d] = %s\n", i, argv[i]);
}
printf("%s \n",SI);
//cursor comes to the beginning of this line.
return EXIT_SUCCESS;
}
Same happens for first printf too.