Re: Crash on set-buffer

2014-04-11 Thread Nicholas Marriott
Thanks - applied to OpenBSD will be in git soon. On Fri, Apr 11, 2014 at 09:28:13PM +0200, Julien Rebetez wrote: > The fix works for me ! > Thank you > > On Fri, Apr 11, 2014 at 9:10 PM, Nicholas Marriott > wrote: > > It doesn't crash for me, but this does: > > > > tmux setb $(perl -e "print \"

Re: [PATCH 2/2] Rename mouse constants.

2014-04-11 Thread Nicholas Marriott
Hi I think these are fine because they are all part of the same number, I don't like stuff like: if (b & MOUSE_MASK_WHEEL) { if (b & MOUSE_SHIFT) Since they are both bits in b they should have the same prefix. Possibly s/MASK/BIT/ or s/MASK// would be better but meh, I t

Re: Crash on set-buffer

2014-04-11 Thread Nicholas Marriott
It doesn't crash for me, but this does: tmux setb $(perl -e "print \"x\"x1042") Please try this fix (also fixes some other similar things): diff --git a/arguments.c b/arguments.c index d4e5e53..fd656b1 100644 --- a/arguments.c +++ b/arguments.c @@ -125,7 +125,7 @@ args_free(struct args *args)

Re: m->scroll in choose-*: set to 1 by default?

2014-04-11 Thread Thomas Adam
Hi, I saw it. I'm thinking that either it's situation dependent, or you change the defaults such that you always scroll by one line and pressing different keys affects the number of lines scrolled. Either way, what we have now is irritating with some lists, and I don't want to have to require hol

Re: m->scroll in choose-*: set to 1 by default?

2014-04-11 Thread Marcel Partap
This breaks consistency between different modes; does SHIFT+scrolling not suit you well enough? That does single-line-scrolling but is not documented yet, so you may have missed it. #Regards/MPartap -- Put Bad Developers

[PATCH 1/2] Enable mouse wheel scrolling in man pages, basically.

2014-04-11 Thread Marcel Partap
No issues found in weeks of heavy use, please test anyway. --- input-keys.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/input-keys.c b/input-keys.c index f092f97..1df8e98 100644 --- a/input-keys.c +++ b/input-keys.c @@ -204,6 +204,20 @@ input_mouse(struct window_pane *wp, s

[PATCH 2/2] Rename mouse constants.

2014-04-11 Thread Marcel Partap
Rationale: · remove _MASK_ from SHIFT/META/CTRL for consistency with "Key modifier bits" KEYC_ESCAPE/KEYC_CTRL/KEYC_SHIFT · rename MOUSE_MASK_BUTTONS to MOUSE_MASK_BUTTON: only receiving single button events · comment rename button masks => event masks: drag and wheel are more events than they a

Re: Crash on set-buffer

2014-04-11 Thread Nicholas Marriott
Hi tmux doesn't crash for me, please try to build tmux from git and see if you can still reproduce. If you can, please see if there is a core file and send me a backtrace from gdb. On Fri, Apr 11, 2014 at 04:30:54PM +0200, Julien Rebetez wrote: > Hello, > First, thanks for this wonderful softwa

Crash on set-buffer

2014-04-11 Thread Julien Rebetez
Hello, First, thanks for this wonderful software ! I am using tslime[1] with a custom vim plugin [2] to copy/paste code from vim to an ipython session running in tmux. It's working great but sometimes, tmux crashes with "[lost server]". In the background, tslime use 'tmux set-buffer' to send text

Re: tmux always starts login shell

2014-04-11 Thread Lauri Tirkkonen
On Thu, Apr 10 2014 15:22:18 +0100, Nicholas Marriott wrote: > Shells in tmux are started out of nothing, not from another shell, so > using login shells is the right thing to do. This is not true. tmux is like a terminal program, and I got a login shell when I logged in to the machine I am runnin

Re: tmux always starts login shell

2014-04-11 Thread Lauri Tirkkonen
Sorry for separate replies, I somehow failed to read half of your message. On Thu, Apr 10 2014 15:22:18 +0100, Nicholas Marriott wrote: > You can change it by setting default-command. This is problematic - how do I configure this system-wide so that users get their own shell started? It also caus