Changeset 421 for trunk


Ignore:
Timestamp:
Apr 20, 2010, 8:40:21 PM (11 years ago)
Author:
dmik
Message:

Fixed file navigation with Shift+PgUp/PgDown/Home/End? broken in version 1.30 (due to the switch from Watcom to GCC with its unix-like forward slashes). Fixes ticket:175.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/gui/lucide.cpp

    r414 r421  
    619619    char *buf = new char[ CCHMAXPATH ];
    620620    strcpy( buf, docFullName );
    621     char *r = strrchr( buf, '\\' );
    622     if ( r != NULL )
     621    char *r = buf + strlen( buf );
     622    while ( r >= buf && *r != '\\' && *r != '/')
     623        --r;
     624    if ( r >= buf )
    623625    {
    624626        *( r + 1 ) = 0;
Note: See TracChangeset for help on using the changeset viewer.