diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-08-24 12:05:11 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-08-24 12:05:11 -0700 |
commit | 3f988231ae438e2fc98c94f870a9b266f93e1955 (patch) | |
tree | 3cb4bd283b76a32c247043179252a2529f5b9910 /compat | |
parent | 9e0833c30e1afef7dcffe2c151d0545ecdc730bf (diff) | |
parent | 436783c95a59cca00a7cca1219666bb0af67cb81 (diff) | |
download | git-3f988231ae438e2fc98c94f870a9b266f93e1955.tar.gz |
Merge branch 'bw/maint-1.7.9-solaris-getpass' into maint-1.7.11
* bw/maint-1.7.9-solaris-getpass:
Enable HAVE_DEV_TTY for Solaris
terminal: seek when switching between reading and writing
Diffstat (limited to 'compat')
-rw-r--r-- | compat/terminal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compat/terminal.c b/compat/terminal.c index 6d16c8fba0..bbb038dd01 100644 --- a/compat/terminal.c +++ b/compat/terminal.c @@ -59,6 +59,7 @@ char *git_terminal_prompt(const char *prompt, int echo) r = strbuf_getline(&buf, fh, '\n'); if (!echo) { + fseek(fh, SEEK_CUR, 0); putc('\n', fh); fflush(fh); } |