X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=nhistory.c;h=e1d9766e8a28eec317697a3033da09ee3cc42e06;hb=0d88b7c20af19de163b648898ec8d3ed4c31d796;hp=59b422603d43bf93085eec3aed47f1347c3cf006;hpb=4448222ea4dc2327eaf6338a19160842278229a9;p=xboard.git diff --git a/nhistory.c b/nhistory.c index 59b4226..e1d9766 100644 --- a/nhistory.c +++ b/nhistory.c @@ -26,8 +26,8 @@ #include #include "common.h" +#include "frontend.h" #include "backend.h" -#include "xhistory.h" #include "dialogs.h" #include "gettext.h" @@ -83,6 +83,12 @@ Option historyOptions[] = { { 0, NO_OK, 0, NULL, (void*) NULL, "", NULL, EndMark , "" } }; +void +ScrollToCurrent (int caretPos) +{ + ScrollToCursor(&historyOptions[0], caretPos); +} + // ------------ standard entry points into MoveHistory code ----------- Boolean