Merge jv
authorMerge Script
Mon, 12 Sep 2016 06:57:58 +0200
branchjv
changeset 5237 e532570a2549
parent 5235 59dff2af4d54 (current diff)
parent 5236 cd1625cfd882 (diff)
child 5241 599ff1102334
Merge
TerminalView.st
--- a/TerminalView.st	Sun Sep 11 06:53:10 2016 +0200
+++ b/TerminalView.st	Mon Sep 12 06:57:58 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.