Fossil

Check-in [d46491d6]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Reduce automatic scroll offset when multiple ranges are selected
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:d46491d6e66f9a85e780e7eee44f63595bd9d1c1c8d6f5ea2bf090b3dc0e1785
User & Date: andygoth 2018-06-12 18:52:11
Context
2018-06-13
02:02
Incomplete implementation of the "fossil grep" command. check-in: c5a98aa0 user: drh tags: trunk
2018-06-12
18:52
Reduce automatic scroll offset when multiple ranges are selected check-in: d46491d6 user: andygoth tags: trunk
2018-06-11
20:36
Disable the time_fudge corrections for check-ins that have mtimes that are modified using a tag. check-in: e08f9c04 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/info.c.

  1905   1905         if( iEnd<iStart ) iEnd = iStart;
  1906   1906         db_multi_exec(
  1907   1907           "INSERT OR REPLACE INTO lnos VALUES(%d,%d)", iStart, iEnd
  1908   1908         );
  1909   1909         iStart = iEnd = atoi(&zLn[i++]);
  1910   1910       }while( zLn[i] && iStart && iEnd );
  1911   1911     }
  1912         -  db_prepare(&q, "SELECT min(iStart), iEnd FROM lnos");
         1912  +  db_prepare(&q, "SELECT min(iStart), max(iEnd) FROM lnos");
  1913   1913     if( db_step(&q)==SQLITE_ROW ){
  1914   1914       iStart = db_column_int(&q, 0);
  1915   1915       iEnd = db_column_int(&q, 1);
  1916   1916       iTop = iStart - 15 + (iEnd-iStart)/4;
  1917   1917       if( iTop>iStart - 2 ) iTop = iStart-2;
  1918   1918     }
  1919   1919     db_finalize(&q);