[tui] fix source position (closes #119019) [applied]