comparison src/term.c @ 27018:268f6a3511df v8.2.4038

patch 8.2.4038: various code not used when features are disabled Commit: https://github.com/vim/vim/commit/748b308eebe8d8860888eb27da08333f175d547d Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Sat Jan 8 12:41:16 2022 +0000 patch 8.2.4038: various code not used when features are disabled Problem: Various code not used when features are disabled. Solution: Add #ifdefs. (Dominique Pell?, closes https://github.com/vim/vim/issues/9491)
author Bram Moolenaar <Bram@vim.org>
date Sat, 08 Jan 2022 13:45:04 +0100
parents 671664c5faa4
children fb4c30606b4a
comparison
equal deleted inserted replaced
27017:da790d50f73d 27018:268f6a3511df
3989 out_str(T_VI); // disable cursor 3989 out_str(T_VI); // disable cursor
3990 cursor_is_off = TRUE; 3990 cursor_is_off = TRUE;
3991 } 3991 }
3992 } 3992 }
3993 3993
3994 #ifdef FEAT_GUI
3994 /* 3995 /*
3995 * Check whether the cursor is invisible due to an ongoing cursor-less sleep 3996 * Check whether the cursor is invisible due to an ongoing cursor-less sleep
3996 */ 3997 */
3997 int 3998 int
3998 cursor_is_sleeping(void) 3999 cursor_is_sleeping(void)
3999 { 4000 {
4000 return cursor_is_asleep; 4001 return cursor_is_asleep;
4001 } 4002 }
4003 #endif
4002 4004
4003 /* 4005 /*
4004 * Disable the cursor and mark it disabled by cursor-less sleep 4006 * Disable the cursor and mark it disabled by cursor-less sleep
4005 */ 4007 */
4006 void 4008 void