… | |
… | |
353 | XmbDrawString (disp, root, fontset, WinGC, win_x, win_y + offset, |
353 | XmbDrawString (disp, root, fontset, WinGC, win_x, win_y + offset, |
354 | line->line, line->len); |
354 | line->line, line->len); |
355 | } |
355 | } |
356 | |
356 | |
357 | if (opt_frame) |
357 | if (opt_frame) |
|
|
358 | { |
|
|
359 | XSetForeground (disp, WinGC, GetColor (def_color)); |
358 | XDrawRectangle (disp, root, WinGC, win_x - 2, win_y - 2, width + 4, height + 4); |
360 | XDrawRectangle (disp, root, WinGC, win_x - 2, win_y - 2, width + 4, height + 4); |
|
|
361 | } |
359 | } |
362 | } |
360 | |
363 | |
361 | #if HAS_REGEX |
364 | #if HAS_REGEX |
362 | void |
365 | void |
363 | transform_line (char *s) |
366 | transform_line (char *s) |
… | |
… | |
640 | unsigned long color = lines[idx].color; |
643 | unsigned long color = lines[idx].color; |
641 | char *old = lines[idx].line; |
644 | char *old = lines[idx].line; |
642 | char *new = concat_line (old, str); |
645 | char *new = concat_line (old, str); |
643 | |
646 | |
644 | free (old); |
647 | free (old); |
645 | free (str); |
|
|
646 | |
648 | |
647 | delete_line (idx); |
649 | delete_line (idx); |
648 | split_line (idx, new, color); |
650 | split_line (idx, new, color); |
649 | } |
651 | } |
650 | |
652 | |
… | |
… | |
801 | |
803 | |
802 | refresh (miny, maxy); |
804 | refresh (miny, maxy); |
803 | XDestroyRegion (region); |
805 | XDestroyRegion (region); |
804 | region = XCreateRegion (); |
806 | region = XCreateRegion (); |
805 | maxy = 0; |
807 | maxy = 0; |
806 | miny = win_y + height; |
808 | miny = 32768; |
807 | } |
809 | } |
808 | } |
810 | } |
809 | } |
811 | } |
810 | |
812 | |
811 | |
813 | |