fix a bug
This commit is contained in:
parent
8404630ee7
commit
aa1a2ec9a1
|
@ -4,7 +4,7 @@ class Buffer
|
|||
@data = {}
|
||||
|
||||
add: (line) =>
|
||||
if #data == @limit
|
||||
if #@data == @limit
|
||||
table.remove @data, 0
|
||||
|
||||
table.insert @data, line
|
||||
|
|
Loading…
Reference in New Issue