summaryrefslogtreecommitdiff
path: root/pretty.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-03-08 06:34:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-03-08 06:34:13 (GMT)
commit934f788981de941814e821217f32451a5c715d5d (patch)
treeb98d42ef8c9606b34f9b9389d2d65190db1ecc37 /pretty.c
parent113106e06c48cc80432fd1be8af912898e8f240e (diff)
parent9a6682bab5e800465f0a4e44cdf18fe396ff4f6d (diff)
downloadgit-934f788981de941814e821217f32451a5c715d5d.zip
git-934f788981de941814e821217f32451a5c715d5d.tar.gz
git-934f788981de941814e821217f32451a5c715d5d.tar.bz2
Merge branch 'maint'
* maint: builtin-revert.c: release index lock when cherry-picking an empty commit document config --bool-or-int t1300: use test_must_fail as appropriate cleanup: add isascii() Documentation: fix badly indented paragraphs in "--bisect-all" description
Diffstat (limited to 'pretty.c')
-rw-r--r--pretty.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pretty.c b/pretty.c
index f499294..c018408 100644
--- a/pretty.c
+++ b/pretty.c
@@ -83,8 +83,7 @@ static int get_one_line(const char *msg)
/* High bit set, or ISO-2022-INT */
int non_ascii(int ch)
{
- ch = (ch & 0xff);
- return ((ch & 0x80) || (ch == 0x1b));
+ return !isascii(ch) || ch == '\033';
}
static int is_rfc2047_special(char ch)