Fix segfault when using arrow keys in prompt
Fix segfault when using arrow keys in prompt

rychipman/vis,cpehle/vis,twinshadow/vis,8l/vis,rychipman/vis,twinshadow/vis,trengrj/vis,8l/vis,cpehle/vis,trengrj/vis,clehner/vis,clehner/vis