/[qemacs]/qemacs/html.c
ViewVC logotype

Diff of /qemacs/html.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by chqrlie, Mon May 9 09:10:37 2005 UTC revision 1.4 by chqrlie, Wed May 11 15:12:14 2005 UTC
# Line 71  static int recompute_offset_func(void *o Line 71  static int recompute_offset_func(void *o
71      if (len == 0)      if (len == 0)
72          return 0;          return 0;
73      offset = data->wanted_offset;      offset = data->wanted_offset;
74      for(i=0;i<len;i++) {      for (i = 0; i < len; i++) {
75          d = abs(offset - offsets[i]);          d = abs(offset - offsets[i]);
76          if (d < data->dmin) {          if (d < data->dmin) {
77              data->dmin = d;              data->dmin = d;
# Line 394  static void html_scroll_up_down(EditStat Line 394  static void html_scroll_up_down(EditStat
394    
395      h = SCROLL_MHEIGHT;      h = SCROLL_MHEIGHT;
396      if (abs(dir) == 2) {      if (abs(dir) == 2) {
397          h = s->height - SCROLL_MHEIGHT;          h = s->height - SCROLL_MHEIGHT;
398          dir /= 2;          dir /= 2;
399      }      }
400      if (h < SCROLL_MHEIGHT)      if (h < SCROLL_MHEIGHT)
401          h = s->height;          h = s->height;
# Line 834  static int html_mode_probe(ModeProbeData Line 834  static int html_mode_probe(ModeProbeData
834      int c, score;      int c, score;
835    
836      score = 0;      score = 0;
837      for(;;) {      for (;;) {
838          c = *p;          c = *p;
839          if (c == '\0')          if (c == '\0')
840              break;              break;
841          if (c < 32 && (c != '\r' && c != '\n' && c != '\t' && c != '\e'))          if (c < 32 && (c != '\r' && c != '\n' && c != '\t' && c != '\e'))
842              return 0;              return 0;
843          if (stristart(p, "<HTML", NULL))          if (stristart(p, "<HTML", NULL))
844              score = 100;              score = 100;

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26