Hi

We are not going to change these, it is just adding code and a maintenance
burden for no real reason, the meaning is clear enough.


On 31 Dec 2016 6:06 pm, "Jon Forrest" <[email protected]> wrote:

I'm one of those annoying people who notice and comment on
"it's" vs. "its" errors. This is why I also noticed the
following output when running 'tmux ls':

0: 1 windows (created Sat Dec 31 09:53:09 2016) [110x39] (attached)

which, of course, should be

0: 1 window (created Sat Dec 31 09:53:09 2016) [110x39] (attached)

Having some time to spend during the end-of-the-year vacation season,
I took a look at the tmux source code to see how to fix this. It
turns out to be more complicated than I thought.

The relevant code is in cmd-list-sessions.c, in the
cmd_list_sessions_exec() function. This file contains a format
template defined by a #define directive. The word "windows"
appears fixed in this template.

Somehow this word should be constructed based on the value
of the "{session_windows} element. If it's 1, then this should
result in "window" - anything should be "windows". I can think
of several ways of doing that, but they depend on evaluating
the value of "{session_windows}" from within cmd_list_sessions_exec().
That I don't understand how to do.

Any suggestions?

Cordially,
Jon Forrest

-- 
You received this message because you are subscribed to the Google Groups
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To post to this group, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to