*** empty log message ***

This commit is contained in:
Paul Sheer 1998-09-15 23:17:12 +00:00
parent 0978691d5d
commit 3686daaaa1
2 changed files with 15 additions and 1 deletions

View File

@ -719,6 +719,14 @@ extern char *home_dir;
#define NUM_SELECTION_HISTORY 32
#ifndef MAX_PATH_LEN
#ifdef PATH_MAX
#define MAX_PATH_LEN PATH_MAX
#else
#define MAX_PATH_LEN 1024
#endif
#endif
#ifdef _EDIT_C
struct selection selection =

View File

@ -851,7 +851,13 @@ int eh_editor (CWidget * w, XEvent * xevent, CEvent * cwevent)
if (!xevent->xmotion.state && xevent->type == MotionNotify)
return 0;
resolve_button (xevent, cwevent);
edit_mouse_mark (e, xevent, cwevent->double_click);
if ((cwevent->button == Button4 || cwevent->button == Button5)
&& (xevent->type == ButtonRelease)) {
/* ahaack: wheel mouse mapped as button 4 and 5 */
r = edit_execute_key_command (e, (cwevent->button == Button5) ? CK_Page_Down : CK_Page_Up, -1);
break;
}
edit_mouse_mark (e, xevent, cwevent);
break;
case Expose:
edit_render_expose (e, &(xevent->xexpose));