aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-11-27 20:33:11 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-11-27 20:33:11 -0300
commit7b0f7ea87c71ad79dfd9e087b5992761533bef6e (patch)
treecbb173280c736f89523b63a9c28429878131a995 /src/nvim/ui.c
parent6f7fe5d1b9b182ad3e2bbefe233d3756a8535ee3 (diff)
downloadrneovim-7b0f7ea87c71ad79dfd9e087b5992761533bef6e.tar.gz
rneovim-7b0f7ea87c71ad79dfd9e087b5992761533bef6e.tar.bz2
rneovim-7b0f7ea87c71ad79dfd9e087b5992761533bef6e.zip
ui: Move check_col/check_row functions to mbyte.c
These functions were only being used by mbyte.c, so move them and add the "static" modifier.
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r--src/nvim/ui.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index 7b34ff9d55..526cc3e47e 100644
--- a/src/nvim/ui.c
+++ b/src/nvim/ui.c
@@ -102,26 +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;
-}