# HG changeset patch # User Claus Gittinger # Date 1473601311 -7200 # Node ID cd1625cfd882efb7dafdf69cca8159fd481bfee2 # Parent a63a39bc4b185447ca11e51125e43917db1fbb8f #UI_ENHANCEMENT by cg class: TerminalView changed: #keyPressInLineEditMode: blank lines in history diff -r a63a39bc4b18 -r cd1625cfd882 TerminalView.st --- a/TerminalView.st Sat Sep 10 20:50:32 2016 +0200 +++ b/TerminalView.st Sun Sep 11 15:41:51 2016 +0200 @@ -1117,8 +1117,7 @@ "/ do not remember blank lines (lineBuffer notEmptyOrNil and:[lineBuffer isBlank not]) ifTrue:[ "/ do not remember repetitions - (lineBufferHistory size > 0 and:[lineBufferHistory last = lineBuffer]) ifTrue:[ - ] ifFalse:[ + (lineBufferHistory size > 0 and:[lineBufferHistory last = lineBuffer]) ifFalse:[ lineBufferHistory addLast:lineBuffer. ]. lineBufferHistoryPosition := lineBufferHistory size + 1. @@ -1186,7 +1185,10 @@ "/ remember the current lineBuffer (but only if it is the last) lineBufferHistoryPosition > lineBufferHistory size ifTrue:[ (lineBuffer notEmptyOrNil and:[lineBuffer isBlank not]) ifTrue:[ - lineBufferHistory add:lineBuffer. + "/ do not remember repetitions + (lineBufferHistory size > 0 and:[lineBufferHistory last = lineBuffer]) ifFalse:[ + lineBufferHistory add:lineBuffer. + ]. ]. ]. clearLine value.