Fix SegFault when getting full path for files
Merge pull request #1582 from LBEaston/FixSegFault

Fix SegFault when entering Command(q:) or Search(q/) History