File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -672,6 +672,11 @@ static int paint_krk_numeral(struct syntax_state * state) {
672
672
paint (1 , FLAG_NUMERAL );
673
673
while (isdigit (charat ())) paint (1 , FLAG_NUMERAL );
674
674
}
675
+ if (charat () == 'e' || charat () == 'E' ) {
676
+ paint (1 , FLAG_NUMERAL );
677
+ if (charat () == '-' || charat () == '+' ) paint (1 , FLAG_NUMERAL );
678
+ while (isdigit (charat ())) paint (1 , FLAG_NUMERAL );
679
+ }
675
680
}
676
681
return 0 ;
677
682
}
@@ -2017,12 +2022,12 @@ static void set_unbuffered(void) {
2017
2022
_EOF = old .c_cc [VEOF ];
2018
2023
struct termios new = old ;
2019
2024
new .c_lflag &= (~ICANON & ~ECHO & ~ISIG );
2020
- tcsetattr (STDOUT_FILENO , TCSAFLUSH , & new );
2025
+ tcsetattr (STDOUT_FILENO , TCSADRAIN , & new );
2021
2026
if (wcwidth (0x3042 ) != 2 ) setlocale (LC_CTYPE , "" );
2022
2027
}
2023
2028
2024
2029
static void set_buffered (void ) {
2025
- tcsetattr (STDOUT_FILENO , TCSAFLUSH , & old );
2030
+ tcsetattr (STDOUT_FILENO , TCSADRAIN , & old );
2026
2031
}
2027
2032
#else
2028
2033
static unsigned int _INTR = 3 ;
You can’t perform that action at this time.
0 commit comments