Commit b139671c authored by Hisham's avatar Hisham
Browse files

Moving left and right needs a full redraw.

parent adcc944e
...@@ -439,10 +439,12 @@ bool Panel_onKey(Panel* this, int key) { ...@@ -439,10 +439,12 @@ bool Panel_onKey(Panel* this, int key) {
case KEY_CTRL('A'): case KEY_CTRL('A'):
case '^': case '^':
this->scrollH = 0; this->scrollH = 0;
this->needsRedraw = true;
break; break;
case KEY_CTRL('E'): case KEY_CTRL('E'):
case '$': case '$':
this->scrollH = MAX(this->selectedLen - this->w, 0); this->scrollH = MAX(this->selectedLen - this->w, 0);
this->needsRedraw = true;
break; break;
default: default:
return false; return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment