I have a little bit difficulty understanding the meaning of "So thinking" In this sentence from Clive Barker's book of blood:
"But When her courage faltered, she thought of Trevor, and how badly she wanted to silence his condescension. So thinking, she advanced into the place...."
Is this even grammatically correct to use 'so thinking'? If so, what is its meaning, and what words can I replace it with?