[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] merged patch

From: David Lawrence Ramsey
Subject: Re: [Nano-devel] merged patch
Date: Thu, 21 Feb 2002 22:59:24 -0800 (PST)

--- Steven Kneizys <address@hidden> wrote:


>I added a status bar change notification when changing buffers, it
>looked odd to me when reading in a file, then switching buffers, that
>the &quot;read lines&quot; message was still there.  This is is the routines 
>switch to prev and next open file:
>    load_open_file();
>    statusbar(_(&quot;Switched to %s&quot;),open_files-&gt;data);

Nice, but it needs one last tweak; if you have a "New Buffer"
open, the name will be "", so the prompt will be "Switched
to ".  Maybe this would do it:

statusbar(_(&quot;Switched to %s&quot;), ((open_files->data[0] == '\0') ? 
open_files-&gt;data : "New Buffer"));

One more thing: is there any interest in changing the char
*name argument of get_next_filename() to a const char*, as I
brought up before, or am I just being too picky?

Also, sorry about the problem with num_of_digits()' return
value being assigned to a variable; I didn't know it'd be a
problem for some compilers.  (If only there was an
INT_MAX_DIGITS #defined in limits.h as the number of digits
in INT_MAX, it would be so much easier for those who need
to convert ints to char* values and need to know how much
space to allocate for it.)

Sluggy.Net: The Sluggy Freelance Community!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]