=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/mode-tree.c,v retrieving revision 1.19 retrieving revision 1.20 diff -c -r1.19 -r1.20 *** src/usr.bin/tmux/mode-tree.c 2017/11/03 17:02:33 1.19 --- src/usr.bin/tmux/mode-tree.c 2017/11/03 17:11:20 1.20 *************** *** 1,4 **** ! /* $OpenBSD: mode-tree.c,v 1.19 2017/11/03 17:02:33 nicm Exp $ */ /* * Copyright (c) 2017 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: mode-tree.c,v 1.20 2017/11/03 17:11:20 nicm Exp $ */ /* * Copyright (c) 2017 Nicholas Marriott *************** *** 745,751 **** if (yp != NULL) *yp = y; if (x > mtd->width || y > mtd->height) { ! if (!mtd->preview || y < mtd->height) *key = KEYC_NONE; return (0); } --- 745,751 ---- if (yp != NULL) *yp = y; if (x > mtd->width || y > mtd->height) { ! if (!mtd->preview) *key = KEYC_NONE; return (0); } *************** *** 755,762 **** mtd->current = mtd->offset + y; if (*key == KEYC_DOUBLECLICK1_PANE) *key = '\r'; ! return (0); ! } } line = &mtd->line_list[mtd->current]; --- 755,765 ---- mtd->current = mtd->offset + y; if (*key == KEYC_DOUBLECLICK1_PANE) *key = '\r'; ! else ! *key = KEYC_NONE; ! } else ! *key = KEYC_NONE; ! return (0); } line = &mtd->line_list[mtd->current];