Judd Trump kept his hopes of a third consecutive Gibraltar Open title alive with a 4-1 win over Sanderson Lam.