The ornamental design for a icon for a portion of a computer screen, as shown and described.
The single FIGURE is a front view of an icon for a portion of a computer screen showing the new design. The broken line drawing of an undefined portion of a display screen is for illustrative purposes only and forms no part of the claimed design.