diff options
author | jhb <jhb@FreeBSD.org> | 2007-10-27 20:19:11 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2007-10-27 20:19:11 +0000 |
commit | 77551ac052e527f238981be677e40a873eb81d42 (patch) | |
tree | b1ae768a76d116ea7588b90be234de091558eebb | |
parent | b4d6e528d29958497e84463bb2c022caab0fb35c (diff) | |
download | FreeBSD-src-77551ac052e527f238981be677e40a873eb81d42.zip FreeBSD-src-77551ac052e527f238981be677e40a873eb81d42.tar.gz |
Make the examine command honor db_pager_quit so you can use 'q' or 'x'
at the pager prompt to abort an examine command that spans multiple pages.
MFC after: 1 week
-rw-r--r-- | sys/ddb/db_examine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ddb/db_examine.c b/sys/ddb/db_examine.c index b9d4353..eba6151 100644 --- a/sys/ddb/db_examine.c +++ b/sys/ddb/db_examine.c @@ -80,7 +80,7 @@ db_examine(addr, fmt, count) int width; char * fp; - while (--count >= 0) { + while (--count >= 0 && !db_pager_quit) { fp = fmt; size = 4; while ((c = *fp++) != 0) { |