CenterView on jumping back and forward
This commit is contained in:
@@ -274,7 +274,7 @@ void JumpBack(Window *window) {
|
|||||||
window->active_view = c.view_id;
|
window->active_view = c.view_id;
|
||||||
View *view = GetView(c.view_id);
|
View *view = GetView(c.view_id);
|
||||||
view->carets[0] = c.caret;
|
view->carets[0] = c.caret;
|
||||||
UpdateScroll(window, true);
|
CenterView(window->id);
|
||||||
|
|
||||||
if (window->goto_history.len) {
|
if (window->goto_history.len) {
|
||||||
GotoCrumb *next = GetLast(window->goto_history);
|
GotoCrumb *next = GetLast(window->goto_history);
|
||||||
@@ -294,7 +294,7 @@ void JumpForward(Window *window) {
|
|||||||
window->active_view = c.view_id;
|
window->active_view = c.view_id;
|
||||||
View *view = GetView(c.view_id);
|
View *view = GetView(c.view_id);
|
||||||
view->carets[0] = c.caret;
|
view->carets[0] = c.caret;
|
||||||
UpdateScroll(window, true);
|
CenterView(window->id);
|
||||||
|
|
||||||
if (window->goto_redo.len) {
|
if (window->goto_redo.len) {
|
||||||
GotoCrumb *next = GetLast(window->goto_redo);
|
GotoCrumb *next = GetLast(window->goto_redo);
|
||||||
|
|||||||
Reference in New Issue
Block a user