diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-11-27 20:48:51 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-11-27 20:48:51 -0300 |
commit | e5a386d2f819ee3a357384279d1a7810ec213087 (patch) | |
tree | cbb173280c736f89523b63a9c28429878131a995 /src/nvim/ui.c | |
parent | 98b11f5db3a99ef633ad77ddc6b22dc428873e95 (diff) | |
parent | 7b0f7ea87c71ad79dfd9e087b5992761533bef6e (diff) | |
download | rneovim-e5a386d2f819ee3a357384279d1a7810ec213087.tar.gz rneovim-e5a386d2f819ee3a357384279d1a7810ec213087.tar.bz2 rneovim-e5a386d2f819ee3a357384279d1a7810ec213087.zip |
Merge PR #1568 'Remove code defined under USE_IM_CONTROL #ifdefs'
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r-- | src/nvim/ui.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c index 803e7fab50..526cc3e47e 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -102,52 +102,3 @@ void ui_cursor_shape(void) conceal_check_cursur_line(); } -/* - * Check bounds for column number - */ -int check_col(int col) -{ - if (col < 0) - return 0; - if (col >= (int)screen_Columns) - return (int)screen_Columns - 1; - return col; -} - -/* - * Check bounds for row number - */ -int check_row(int row) -{ - if (row < 0) - return 0; - if (row >= (int)screen_Rows) - return (int)screen_Rows - 1; - return row; -} - - -#if defined(USE_IM_CONTROL) || defined(PROTO) -/* - * Save current Input Method status to specified place. - */ -void im_save_status(long *psave) -{ - /* Don't save when 'imdisable' is set or "xic" is NULL, IM is always - * disabled then (but might start later). - * Also don't save when inside a mapping, vgetc_im_active has not been set - * then. - * And don't save when the keys were stuffed (e.g., for a "." command). - * And don't save when the GUI is running but our window doesn't have - * input focus (e.g., when a find dialog is open). */ - if (!p_imdisable && KeyTyped && !KeyStuffed - ) { - /* Do save when IM is on, or IM is off and saved status is on. */ - if (vgetc_im_active) - *psave = B_IMODE_IM; - else if (*psave == B_IMODE_IM) - *psave = B_IMODE_NONE; - } -} -#endif - |