#Get the lines and remove empty lines
lines = string.split(text, "\n")
#Remove the incomplete line
len = max(0,self.getHistoryLen())
#Get the lines and remove empty lines
lines = string.split(text, "\n")
#Remove the incomplete line
len = max(0,self.getHistoryLen())