2525 * the terminal emulator.
2626 *
2727 * If the terminal window has keyboard focus, typed keys are converted to the
28- * terminal encoding and writting to the job over a channel.
28+ * terminal encoding and writing to the job over a channel.
2929 *
3030 * If the job produces output, it is written to the terminal emulator. The
3131 * terminal emulator invokes callbacks when its screen content changes. The
@@ -731,7 +731,7 @@ color2index(VTermColor *color)
731731 else if (red == 128 )
732732 {
733733 if (green == 128 && blue == 128 )
734- return 9 ; /* high intensity bladk */
734+ return 9 ; /* high intensity black */
735735 }
736736 else if (red == 255 )
737737 {
@@ -894,7 +894,10 @@ term_update_window(win_T *wp)
894894 if (c == NUL )
895895 {
896896 ScreenLines [off ] = ' ' ;
897- ScreenLinesUC [off ] = NUL ;
897+ #if defined(FEAT_MBYTE )
898+ if (enc_utf8 )
899+ ScreenLinesUC [off ] = NUL ;
900+ #endif
898901 }
899902 else
900903 {
@@ -907,7 +910,8 @@ term_update_window(win_T *wp)
907910 else
908911 {
909912 ScreenLines [off ] = c ;
910- ScreenLinesUC [off ] = NUL ;
913+ if (enc_utf8 )
914+ ScreenLinesUC [off ] = NUL ;
911915 }
912916#else
913917 ScreenLines [off ] = c ;
@@ -920,7 +924,10 @@ term_update_window(win_T *wp)
920924 if (cell .width == 2 )
921925 {
922926 ScreenLines [off ] = NUL ;
923- ScreenLinesUC [off ] = NUL ;
927+ #if defined(FEAT_MBYTE )
928+ if (enc_utf8 )
929+ ScreenLinesUC [off ] = NUL ;
930+ #endif
924931 ++ pos .col ;
925932 ++ off ;
926933 }
@@ -1025,9 +1032,9 @@ term_get_status_text(term_T *term)
10251032#define WINPTY_SPAWN_FLAG_AUTO_SHUTDOWN 1ul
10261033#define WINPTY_SPAWN_FLAG_EXIT_AFTER_SHUTDOWN 2ull
10271034
1028- void * (* winpty_config_new )(int , void * );
1035+ void * (* winpty_config_new )(UINT64 , void * );
10291036void * (* winpty_open )(void * , void * );
1030- void * (* winpty_spawn_config_new )(int , void * , LPCWSTR , void * , void * , void * );
1037+ void * (* winpty_spawn_config_new )(UINT64 , void * , LPCWSTR , void * , void * , void * );
10311038BOOL (* winpty_spawn )(void * , void * , HANDLE * , HANDLE * , DWORD * , void * );
10321039void (* winpty_config_set_initial_size )(void * , int , int );
10331040LPCWSTR (* winpty_conin_name )(void * );
0 commit comments