Sentence:  Whoever it was had meant to shut him up in here , had followed him and <WSD>waited</WSD> till the courthouse and square were deserted . 
Meaning of the word marked with <WSD> tags:  stay in one place and anticipate or expect something