Mark the line when modified, and search modified lines