On Thu, Dec 08, 2005 at 12:31:40PM -0500, Bennett Helm wrote:
> On Dec 8, 2005, at 11:09 AM, Jean-Marc Lasgouttes wrote:
> 
> >>>>>>"Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes:

 
> It's a little hard to tell the order of events given that things  
> happen so quickly. But it seems like as you type, the individual  
> character that gets typed gets updated, then the info bar at the  
> bottom of the window is updated, and then the whole text area of the  
> window is updated. It's that last item that seems significant: the  
> entire window is updated with each keystroke.

Bennett,

the attached should produce a noticable speedup.

(Lars likes simple patches :)

- Martin

 
Index: lyxfunc.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyxfunc.C,v
retrieving revision 1.673
diff -u -p -r1.673 lyxfunc.C
--- lyxfunc.C   25 Nov 2005 09:27:08 -0000      1.673
+++ lyxfunc.C   9 Dec 2005 20:27:28 -0000
@@ -1589,7 +1589,9 @@ void LyXFunc::dispatch(FuncRequest const
                        if (update)
                                view()->update(Update::FitCursor | 
Update::Force);
                        else
-                               view()->update(Update::FitCursor);
+                               if (!lyxaction.funcHasFlag(cmd.action, 
+                                   LyXAction::SingleParUpdate))
+                                       view()->update(Update::FitCursor);
 
                        // if we executed a mutating lfun, mark the buffer as 
dirty
                        // FIXME: Why not use flag.enabled() but call getStatus 
again?

Attachment: pgp0rSjCmgJPC.pgp
Description: PGP signature

Reply via email to