<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -138,7 +138,7 @@ namespace Avogadro
          
     printPrompt();
 
-    connect(this, SIGNAL(cursorPositionChanged()), this, SLOT(setTextCursorToEnd()));
+//    connect(this, SIGNAL(cursorPositionChanged()), this, SLOT(setTextCursorToEnd()));
   }
 
   void PythonTerminalEdit::setMolecule(Molecule *molecule)
@@ -150,6 +150,7 @@ namespace Avogadro
   void PythonTerminalEdit::setTextCursorToEnd()
   {
     QTextCursor cursor(textCursor());
+    qDebug() &lt;&lt; &quot;cursor pos: &quot; &lt;&lt; cursor.position();
     if (cursor.position() &lt; m_cursorPos)
       cursor.setPosition(m_cursorPos);
     setTextCursor(cursor);
@@ -279,6 +280,7 @@ namespace Avogadro
 
       }
       event-&gt;accept();
+      return;
     }
     else if(event-&gt;key() == Qt::Key_Return)
     {
@@ -317,8 +319,12 @@ namespace Avogadro
       }
     }
 
+    setTextCursorToEnd();
+
     QTextEdit::keyPressEvent(event);
   }
+
+
 }
 
 Q_EXPORT_PLUGIN2(pythonterminal, Avogadro::PythonTerminalFactory)</diff>
      <filename>libavogadro/src/extensions/pythonterminal.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -79,7 +79,7 @@ namespace Avogadro {
 
     public:
       PythonTerminalEdit(QWidget *parent = 0);
-      virtual void keyPressEvent ( QKeyEvent * event );
+      void keyPressEvent(QKeyEvent *event);
 
       void setMolecule(Molecule *molecule); 
 </diff>
      <filename>libavogadro/src/extensions/pythonterminal.h</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ecf2345273c89d3d26e639aaa8b362610d452578</id>
    </parent>
  </parents>
  <author>
    <name>Tim Vandermeersch</name>
    <email>tim.vandermeersch@gmail.com</email>
  </author>
  <url>http://github.com/ghutchis/avogadro/commit/ac2b3e6b1206f65487cf95a8ac79ce92c52bf001</url>
  <id>ac2b3e6b1206f65487cf95a8ac79ce92c52bf001</id>
  <committed-date>2009-10-30T01:58:55-07:00</committed-date>
  <authored-date>2009-10-29T14:00:39-07:00</authored-date>
  <message>PythonTerminal extension: Allow selections in the python terminal widget without allowing to edit (i.e. delete) already processed commands</message>
  <tree>3faea1363082c34683b87190a67f62955dd77703</tree>
  <committer>
    <name>Tim Vandermeersch</name>
    <email>tim.vandermeersch@gmail.com</email>
  </committer>
</commit>
