Revision: 2770
http://tmux.svn.sourceforge.net/tmux/?rev=2770&view=rev
Author: tcunha
Date: 2012-04-10 09:54:59 +0000 (Tue, 10 Apr 2012)
Log Message:
-----------
Sync OpenBSD patchset 1088:
Simplify mouse input function.
Modified Paths:
--------------
trunk/input-keys.c
Modified: trunk/input-keys.c
===================================================================
--- trunk/input-keys.c 2012-04-10 09:54:29 UTC (rev 2769)
+++ trunk/input-keys.c 2012-04-10 09:54:59 UTC (rev 2770)
@@ -203,7 +203,6 @@
{
char buf[10];
size_t len;
- int value;
if (wp->screen->mode & ALL_MOUSE_MODES) {
if (wp->screen->mode & MODE_MOUSE_UTF8) {
@@ -220,13 +219,15 @@
buf[len++] = m->y + 33;
}
bufferevent_write(wp->event, buf, len);
- } else if ((m->b & MOUSE_BUTTON) != MOUSE_2) {
- value = options_get_number(&wp->window->options, "mode-mouse");
- if (value == 1 &&
- window_pane_set_mode(wp, &window_copy_mode) == 0) {
+ return;
+ }
+
+ if (options_get_number(&wp->window->options, "mode-mouse") == 1) {
+ if (window_pane_set_mode(wp, &window_copy_mode) == 0) {
window_copy_init_from_pane(wp);
if (wp->mode->mouse != NULL)
wp->mode->mouse(wp, NULL, m);
}
+ return;
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs