# HG changeset patch
# User Teemu Piippo <crimsondusk64@gmail.com>
# Date 1418681835 -7200
# Node ID ae5b486f6882a408ef1783e27b574aeefcec183d
# Parent  481073b016a998f5ca49cc7b00c154720c6e90cf
- i intended to actually use that new last() overload...

diff -r 481073b016a9 -r ae5b486f6882 sources/interface.cpp
--- a/sources/interface.cpp	Tue Dec 16 00:15:44 2014 +0200
+++ b/sources/interface.cpp	Tue Dec 16 00:17:15 2014 +0200
@@ -912,12 +912,12 @@
 	{
 		if (ch == '\n')
 		{
-			g_output[g_output.size() - 1].finalize();
+			g_output.last().finalize();
 			g_output << ColoredLine();
 			continue;
 		}
 
-		if (g_output[g_output.size() - 1].length() == 0)
+		if (g_output.last().length() == 0)
 		{
 			time_t now;
 			time (&now);
@@ -925,10 +925,10 @@
 			strftime (timestamp, sizeof timestamp, "[%H:%M:%S] ", localtime (&now));
 
 			for (char* cp = timestamp; *cp != '\0'; ++cp)
-				g_output[g_output.size() - 1].add_char (*cp);
+				g_output.last().add_char (*cp);
 		}
 
-		g_output[g_output.size() - 1].add_char (ch);
+		g_output.last().add_char (ch);
 	}
 
 	g_needOutputRender = true;