X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=nhistory.c;h=f66aa267909577555718dc8b3d8a1a9ae2e8e952;hb=a009a27e8c1e0bfa818f12fdcae675d0babc510a;hp=59b422603d43bf93085eec3aed47f1347c3cf006;hpb=55fdfba16e54a8c9e770124f4a468956b478e90c;p=xboard.git diff --git a/nhistory.c b/nhistory.c index 59b4226..f66aa26 100644 --- a/nhistory.c +++ b/nhistory.c @@ -1,7 +1,7 @@ /* * New (WinBoard-style) Move history for XBoard * - * Copyright 2009, 2010, 2011, 2012 Free Software Foundation, Inc. + * Copyright 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify @@ -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