Move advance_{line,ch} to list.h
Search-next/prev