OK, I think I found a solution. I just hope it will work.


Instead of replacing a line with rline, I'm going to delete the line, and then add another one instead.