diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2015-01-11 15:34:38 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-01-11 15:34:38 -0500 |
commit | 7f30439d0f4d8d7e6b18f56d83d6fe868c84318c (patch) | |
tree | cdbe41bd51e1db7ba38b4ecc84d562b21c374a06 /src/nvim/cursor_shape.c | |
parent | a684cc175a6c1ca2cfc3bff2d68383d32008cb3b (diff) | |
parent | 7f7262e93390a1855ac9c687bd492eadfe10cf98 (diff) | |
download | rneovim-7f30439d0f4d8d7e6b18f56d83d6fe868c84318c.tar.gz rneovim-7f30439d0f4d8d7e6b18f56d83d6fe868c84318c.tar.bz2 rneovim-7f30439d0f4d8d7e6b18f56d83d6fe868c84318c.zip |
Merge pull request #1794 from elmart/remove-long_u-cleanup
Some suggested cleanup after #1788.
Diffstat (limited to 'src/nvim/cursor_shape.c')
-rw-r--r-- | src/nvim/cursor_shape.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/cursor_shape.c b/src/nvim/cursor_shape.c index 87064b4ef3..2e98b8f512 100644 --- a/src/nvim/cursor_shape.c +++ b/src/nvim/cursor_shape.c @@ -135,9 +135,7 @@ char_u *parse_shape_opt(int what) p += len; if (!VIM_ISDIGIT(*p)) return (char_u *)N_("E548: digit expected"); - int64_t digits = getdigits(&p); - assert(digits <= INT_MAX); - int n = (int)digits; + int n = getdigits_int(&p); if (len == 3) { /* "ver" or "hor" */ if (n == 0) return (char_u *)N_("E549: Illegal percentage"); |