Skip to content

Commit 689aaac

Browse files
author
Jonathan Dahan
committed
If GEOMETRY_INFO is empty, do not add an extra newline
1 parent 6825ded commit 689aaac

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111
- Fix git functions erroring out in non-git directories (thanks @duncanbeevers!)
1212
- Git conflict counting with multiple files (thanks @gluxon!)
1313
- Fix git_status when the git directory contains spaces (thanks @tanyaionova!)
14+
- Do not print newline on enter if GEOMETRY_INFO is empty
1415

1516
## 2.2.0 - 2020-01-13
1617

geometry.zsh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ add-zsh-hook precmd geometry::prompt
120120

121121
geometry::info() { # draw info if no command is given
122122
[[ -n "$BUFFER" ]] && { zle accept-line && return; }
123+
[[ -z "$GEOMETRY_INFO" ]] && { zle accept-line && return; }
123124
echo ${(%):-$(geometry::wrap $PWD $GEOMETRY_INFO)}
124125
geometry::prompt
125126
}

0 commit comments

Comments
 (0)