[rkward-cvs] SF.net SVN: rkward: [1561] trunk/rkward/rkward/rkconsole.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Sun Mar 11 19:27:54 UTC 2007


Revision: 1561
          http://svn.sourceforge.net/rkward/?rev=1561&view=rev
Author:   tfry
Date:     2007-03-11 12:27:53 -0700 (Sun, 11 Mar 2007)

Log Message:
-----------
cleanups

Modified Paths:
--------------
    trunk/rkward/rkward/rkconsole.cpp

Modified: trunk/rkward/rkward/rkconsole.cpp
===================================================================
--- trunk/rkward/rkward/rkconsole.cpp	2007-03-11 19:09:59 UTC (rev 1560)
+++ trunk/rkward/rkward/rkconsole.cpp	2007-03-11 19:27:53 UTC (rev 1561)
@@ -322,9 +322,6 @@
 	int word_end;
 	int cursor_pos = currentCursorPositionInCommand ();
 	RKCommonFunctions::getCurrentSymbolOffset (current_line, cursor_pos, false, &word_start, &word_end);
-
-
-	QStringList entries;
 	QString current_symbol = current_line.mid (word_start, word_end - word_start);
 
 	// should we try a file name completion? Let's do some heuristics
@@ -350,10 +347,8 @@
 			if (quote_end < 0) quote_end = current_line.length ();
 	
 			QString current_name = current_line.mid (quote_start + 1, quote_end - quote_start);
-			qDebug ("%s %d %d", current_name.latin1 (), quote_start, quote_end);
 			KURLCompletion comp (KURLCompletion::FileCompletion);
 			QString test = comp.makeCompletion (current_name);
-			qDebug ("%s", test.latin1());
 	
 			if (doTabCompletionHelper (current_line_num, current_line, quote_start+1, quote_end, comp.allMatches ())) return;
 		}
@@ -365,6 +360,7 @@
 			RObject::RObjectMap::const_iterator it;
 			RObjectList::getObjectList ()->findObjectsMatching (current_symbol, &map);
 	
+			QStringList entries;
 			for (it = map.constBegin (); it != map.constEnd (); ++it) {
 				entries.append (it.key ());
 			}


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