mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
*** empty log message ***
This commit is contained in:
parent
0978691d5d
commit
3686daaaa1
@ -719,6 +719,14 @@ extern char *home_dir;
|
|||||||
|
|
||||||
#define NUM_SELECTION_HISTORY 32
|
#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
|
#ifdef _EDIT_C
|
||||||
|
|
||||||
struct selection selection =
|
struct selection selection =
|
||||||
|
@ -851,7 +851,13 @@ int eh_editor (CWidget * w, XEvent * xevent, CEvent * cwevent)
|
|||||||
if (!xevent->xmotion.state && xevent->type == MotionNotify)
|
if (!xevent->xmotion.state && xevent->type == MotionNotify)
|
||||||
return 0;
|
return 0;
|
||||||
resolve_button (xevent, cwevent);
|
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;
|
break;
|
||||||
case Expose:
|
case Expose:
|
||||||
edit_render_expose (e, &(xevent->xexpose));
|
edit_render_expose (e, &(xevent->xexpose));
|
||||||
|
Loading…
Reference in New Issue
Block a user