The ornamental design for an 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 a portion of a display screen is for illustrative purposes only and forms no part of a the claimed design.