aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/digraph.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-01-11 15:34:38 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-01-11 15:34:38 -0500
commit7f30439d0f4d8d7e6b18f56d83d6fe868c84318c (patch)
treecdbe41bd51e1db7ba38b4ecc84d562b21c374a06 /src/nvim/digraph.c
parenta684cc175a6c1ca2cfc3bff2d68383d32008cb3b (diff)
parent7f7262e93390a1855ac9c687bd492eadfe10cf98 (diff)
downloadrneovim-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/digraph.c')
-rw-r--r--src/nvim/digraph.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/digraph.c b/src/nvim/digraph.c
index 2b5fdea2fe..243468b680 100644
--- a/src/nvim/digraph.c
+++ b/src/nvim/digraph.c
@@ -1611,9 +1611,7 @@ void putdigraph(char_u *str)
EMSG(_(e_number_exp));
return;
}
- int64_t digits = getdigits(&str);
- assert(digits <= INT_MAX);
- int n = (int)digits;
+ int n = getdigits_int(&str);
// If the digraph already exists, replace the result.
dp = (digr_T *)user_digraphs.ga_data;