Problem: When "$" is in 'cpo' the popup menu isn't undrawn correctly.
(Issue 166)
Solution: When using the popup menu remove the "$".
if (compl_match_array != NULL)
{
+ /* In Replace mode when a $ is displayed at the end of the line only
+ * part of the screen would be updated. We do need to redraw here. */
+ dollar_vcol = -1;
+
/* Compute the screen column of the start of the completed text.
* Use the cursor to get all wrapping and other settings right. */
col = curwin->w_cursor.col;
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 688,
/**/
687,
/**/