Update first item if X11 selection is incomplete

If prefix or suffix text of the first item in history is same as text in
new X11 selection (and selection is done in same window) update the
first item (don't create new item).

This fixes storing incomplete selection for GVim.