[rkward-cvs] SF.net SVN: rkward: [1626] trunk/rkward/rkward/windows/ rkcommandeditorwindow.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Sun Mar 18 23:39:50 UTC 2007


Revision: 1626
          http://svn.sourceforge.net/rkward/?rev=1626&view=rev
Author:   tfry
Date:     2007-03-18 16:39:50 -0700 (Sun, 18 Mar 2007)

Log Message:
-----------
Small fix to cursor advancement in run line action

Modified Paths:
--------------
    trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp

Modified: trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp	2007-03-18 23:33:55 UTC (rev 1625)
+++ trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp	2007-03-18 23:39:50 UTC (rev 1626)
@@ -321,7 +321,9 @@
 	QString command = m_view->currentTextLine ();
 	if (!command.isEmpty ()) RKConsole::pipeUserCommand (new RCommand (command, RCommand::User, QString::null));
 
-	m_view->down ();		// advance to next line
+	uint para=0; uint p=0;			// advance to next line (NOTE: m_view->down () won't work on auto-wrapped lines
+	m_view->cursorPosition (&para, &p);
+	m_view->setCursorPosition (para+1, p);
 }
 
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list