Fossil SCM

Fix auto-adjust of CLI timeline to terminal width on Linux. Thanks to Warren Young for analysis and patch!

jan.nijtmans 2015-04-21 07:12 trunk
Commit d32ca5928223a448cccfe1d017e5486fdf9fd9b0
1 file changed +1 -3
+1 -3
--- src/comformat.c
+++ src/comformat.c
@@ -23,13 +23,11 @@
2323
#include <assert.h>
2424
#ifdef _WIN32
2525
# include <windows.h>
2626
#else
2727
# include <termios.h>
28
-# if defined(TIOCGWINSZ)
29
-# include <sys/ioctl.h>
30
-# endif
28
+# include <sys/ioctl.h>
3129
#endif
3230
3331
#if INTERFACE
3432
#define COMMENT_PRINT_NONE ((u32)0x00000000) /* No flags. */
3533
#define COMMENT_PRINT_LEGACY ((u32)0x00000001) /* Use legacy algorithm. */
3634
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button