Skip to content

Commit

Permalink
v0.3.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiRegiani committed Jul 14, 2018
1 parent b0bdebd commit 7ecaf84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inim.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.2.5"
version = "0.3.0"
author = "Andrei Regiani"
description = "Interactive Nim Shell / REPL / Playground"
license = "MIT"
Expand Down
6 changes: 4 additions & 2 deletions src/inim.nim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type App = ref object
var app:App

const
INimVersion = "0.2.5"
INimVersion = "0.3.0"
indentSpaces = " "
indentTriggers = [",", "=", ":", "var", "let", "const", "type", "import",
"object", "enum"] # endsWith
Expand Down Expand Up @@ -200,11 +200,13 @@ proc runForever() =
else:
validCode &= myline & "\n"
let lines = output.splitLines

# Print only output you haven't seen
stdout.setForegroundColor(fgCyan, true)

let new_lines = lines[currentOutputLine..^1]

for index, line in new_lines:
# Skip last empty line (otherwise blank line is displayed after command)
if index+1 == len(new_lines) and line == "":
continue
echo line
Expand Down

0 comments on commit 7ecaf84

Please sign in to comment.