This patch should fix path completion starting from the root directory.
To do so, this patch adds a special case when setting the search
directory when the completion buffer points to the root directory.
Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
I'm curious to know if this will work for windows? I don't know how lldb treats / as a path when on a windows host.
root_dir should be os.path.abspath('\\') on windows, which might give you C:\ or whatever the current drive is, so that path might possibly give you something? Idk, you might have to fiddle with the test to get it to work correctly or disable it.