From ed41ca436238c2082ea4f4bb738cc4fcbd11b15c Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Mon, 1 Mar 1999 05:11:17 +0000 Subject: [PATCH] add some notes git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1672 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/register/table-motif.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/register/table-motif.c b/src/register/table-motif.c index d450268974..841ee915d9 100644 --- a/src/register/table-motif.c +++ b/src/register/table-motif.c @@ -286,6 +286,11 @@ modifyCB (Widget mw, XtPointer cd, XtPointer cb) if (retval != newval) { XbaeMatrixSetCell (mw, row, col, (char *) retval); XbaeMatrixRefreshCell (mw, row, col); + /* hack alert -- if the mv callback radically modifies + * the returned string, then endPos won't be such a great + * place to put the cursor. However, mv mostly just accepts + * or rejects edits, so as to not surprise the user too much. + */ XbaeMatrixSetCursorPosition (mw, (cbs->verify->endPos) +1); /* the default update has already been overridden,