[folks/paging: 3/3] Wait for pager to finish before continuing. Don't page output of quit command.
- From: Jeremy Whiting <jpwhiting src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks/paging: 3/3] Wait for pager to finish before continuing. Don't page output of quit command.
- Date: Tue, 10 Jul 2012 16:49:13 +0000 (UTC)
commit e4c53d89fbf65d0b55a3c09ce9f17643615ffddf
Author: Jeremy Whiting <jpwhiting kde org>
Date: Tue Jul 10 10:48:09 2012 -0600
Wait for pager to finish before continuing.
Don't page output of quit command.
tools/inspect/inspect.vala | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/tools/inspect/inspect.vala b/tools/inspect/inspect.vala
index 623ff5c..a2ddaff 100644
--- a/tools/inspect/inspect.vala
+++ b/tools/inspect/inspect.vala
@@ -283,12 +283,15 @@ public class Folks.Inspect.Client : Object
/* Run the command */
if (command != null)
{
- Utils.start_paged_output ();
+ int status;
+ if (command_name != "quit")
+ Utils.start_paged_output ();
command.run (subcommand);
- Utils.stop_paged_output ();
+ if (command_name != "quit")
+ Utils.stop_paged_output ();
/* Let the $PAGER finish & die */
- //wait (out status);
+ wait (out status);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]