Fossil SCM
Fix auto-adjust of CLI timeline to terminal width on Linux. Thanks to Warren Young for analysis and patch!
Commit
d32ca5928223a448cccfe1d017e5486fdf9fd9b0
Parent
92be5246f8303cd…
1 file changed
+1
-3
+1
-3
| --- src/comformat.c | ||
| +++ src/comformat.c | ||
| @@ -23,13 +23,11 @@ | ||
| 23 | 23 | #include <assert.h> |
| 24 | 24 | #ifdef _WIN32 |
| 25 | 25 | # include <windows.h> |
| 26 | 26 | #else |
| 27 | 27 | # include <termios.h> |
| 28 | -# if defined(TIOCGWINSZ) | |
| 29 | -# include <sys/ioctl.h> | |
| 30 | -# endif | |
| 28 | +# include <sys/ioctl.h> | |
| 31 | 29 | #endif |
| 32 | 30 | |
| 33 | 31 | #if INTERFACE |
| 34 | 32 | #define COMMENT_PRINT_NONE ((u32)0x00000000) /* No flags. */ |
| 35 | 33 | #define COMMENT_PRINT_LEGACY ((u32)0x00000001) /* Use legacy algorithm. */ |
| 36 | 34 |
| --- src/comformat.c | |
| +++ src/comformat.c | |
| @@ -23,13 +23,11 @@ | |
| 23 | #include <assert.h> |
| 24 | #ifdef _WIN32 |
| 25 | # include <windows.h> |
| 26 | #else |
| 27 | # include <termios.h> |
| 28 | # if defined(TIOCGWINSZ) |
| 29 | # include <sys/ioctl.h> |
| 30 | # endif |
| 31 | #endif |
| 32 | |
| 33 | #if INTERFACE |
| 34 | #define COMMENT_PRINT_NONE ((u32)0x00000000) /* No flags. */ |
| 35 | #define COMMENT_PRINT_LEGACY ((u32)0x00000001) /* Use legacy algorithm. */ |
| 36 |
| --- src/comformat.c | |
| +++ src/comformat.c | |
| @@ -23,13 +23,11 @@ | |
| 23 | #include <assert.h> |
| 24 | #ifdef _WIN32 |
| 25 | # include <windows.h> |
| 26 | #else |
| 27 | # include <termios.h> |
| 28 | # include <sys/ioctl.h> |
| 29 | #endif |
| 30 | |
| 31 | #if INTERFACE |
| 32 | #define COMMENT_PRINT_NONE ((u32)0x00000000) /* No flags. */ |
| 33 | #define COMMENT_PRINT_LEGACY ((u32)0x00000001) /* Use legacy algorithm. */ |
| 34 |