Bug 85994 - sysutils/most will not acept input ofr % and g commands
Summary: sysutils/most will not acept input ofr % and g commands
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-12 00:00 UTC by Kevin Oberman
Modified: 2005-09-15 13:55 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Oberman 2005-09-12 00:00:26 UTC
sysutils/most ignores the g anbd % commands. This can be fixed by
initializing the return variable to 1.

I have sent this to the author ans I am not ocnfident that this is hte
ideal fix, but it does make those commands work again.

Fix: 

int most_read_from_minibuffer(char *prompt, char *what, unsigned int buflen)
 {
-   int i = 0;
+   int i = 1;
    char *buf;
    unsigned int len;--B2IRZrZNx2shkUT0VDPlS5qAI1S11Dt0JYwZYKd642DPOXsn
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- src/window.c.orig   Sun Sep 11 15:45:14 2005
+++ src/window.c        Sun Sep 11 15:45:29 2005
@@ -238,7 +238,7 @@
How-To-Repeat: 
Just run most(1) and enter g or % followed by an number. Itr does nothing.
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2005-09-15 12:35:55 UTC
Dear maintainer, please review the proposed patch!

Volker
Comment 2 Volker Stolz freebsd_committer freebsd_triage 2005-09-15 12:36:11 UTC
State Changed
From-To: open->feedback

Forwarded PR to maintainer
Comment 3 Emanuel Haupt 2005-09-15 13:40:39 UTC
> Dear maintainer, please review the proposed patch!
> 
> Volker

i hereby approve the submitted patch. i just sent a separate pr: 86154

cheers,
emanuel

-- 
GnuPG key id: 0x55E67774         Download: http://pgp.mit.edu:11371
Key fingerprint: 17B3 FD8F BA68 4AB4 10FD  A9D1 AD52 6588 55E6 7774
Comment 4 Volker Stolz freebsd_committer freebsd_triage 2005-09-15 13:55:16 UTC
State Changed
From-To: feedback->closed

Superseded by maintainer-update in ports/86154