It appears there is no setCursor which does the equivalent of a buttonPress
i.e. finds the right position in the right inset.

Why not ?

I have code like this for cursorPrevious :

   1159         int y = text->cursor.y() - workarea_.height();
   1160         if (y < 0)
   1161                 y = 0;
   1162         text->setCursorFromCoordinates(bv_, bv_->text->cursor.x_fix(), y);
   1163         finishUndo();
   1164         screen_->redraw(bv_->text, bv_);
   1165         updateScrollbar();

to fix this bug :

http://cvs.koziarski.com/show_bug.cgi?id=60

this seems to work except that of course, it doesn't enter any insets. I think
it should and I think that this :

   2203 #warning I believe this code is wrong. (Lgb)
   2204 #warning Jürgen, have a look at this. (Lgb)
   2205 #warning Hmmm, I guess you are right but we
   2206 #warning should verify when this is needed

is the problem (this also sort-of causing the navigate-toc problems as well).

Juergen, Lars, what is needed here ? Am I correct ?

regards
john

p.s. doesn't navigate-toc need to pass a par,pos tuple btw ? it can't work
reliably as is, even with the missing code added

p.p.s. what the bally-hoo is x_fix() ??

-- 
"Unless everyone else on earth is attending meetings I haven't been told
about."
        - /. paranoia at its finest

Reply via email to