added jumping to top an bottom of file

development
Michael Ochmann 8 years ago
parent d3839314e3
commit 3a13b3820f
  1. 8
      src/modes/Edit.cpp

@ -96,6 +96,14 @@ namespace groove {
case '$':
this->editor.x = this->editor.buffer->at(this->editor.y).size();
break;
case 'g':
this->editor.y = 0;
this->editor.offset = 0;
break;
case 'G':
this->editor.y = this->editor.buffer->size();
this->editor.offset = this->editor.buffer->size() - LINES + 2;
break;
}
}
}

Loading…
Cancel
Save