small fix: hide list immediately, if we equals the last item.
small fix: hide list immediately, if we equals the last item.

svn path=/trunk/kdelibs/kate/; revision=225309

hlamer/kate,jfmcarreira/kate,sandsmark/kate,jfmcarreira/kate,hlamer/kate,sandsmark/kate,cmacq2/kate,sandsmark/kate,DickJ/kate,DickJ/kate,hlamer/kate,hlamer/kate,DickJ/kate,hlamer/kate,cmacq2/kate,hlamer/kate,hlamer/kate,sandsmark/kate,hlamer/kate,cmacq2/kate,hlamer/kate,hlamer/kate,DickJ/kate,jfmcarreira/kate