private string find_cur_line_id() {
// the last line - is always the last
Debug.Assert(lines_.Count >= 2);
foreach ( var l in lines_)
if (l.Key != cur_line_id_ && l.Value == cur_line)
return l.Key;
// we could not find it!
Debug.Assert(false);
return cur_line_id_;
}