aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/digraph.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-04-18 21:40:14 +0200
committerGitHub <noreply@github.com>2022-04-18 21:40:14 +0200
commitd3121f1e6380822fcc284ba374b5854c655a1dc4 (patch)
tree8f2e1dca03bc71f8b71ab972dc7dacfe12c03386 /src/nvim/digraph.c
parente73ef5c09281fa45ce6b0a0959467722af2840e8 (diff)
parent0fb571e3b5043f136f2394d84b942b8c93fdde45 (diff)
downloadrneovim-d3121f1e6380822fcc284ba374b5854c655a1dc4.tar.gz
rneovim-d3121f1e6380822fcc284ba374b5854c655a1dc4.tar.bz2
rneovim-d3121f1e6380822fcc284ba374b5854c655a1dc4.zip
Merge pull request #18091 from dundargoc/refactor/pure-attribute
refactor: add pure attribute to pure functions
Diffstat (limited to 'src/nvim/digraph.c')
-rw-r--r--src/nvim/digraph.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/digraph.c b/src/nvim/digraph.c
index 083c868607..0e148543aa 100644
--- a/src/nvim/digraph.c
+++ b/src/nvim/digraph.c
@@ -1551,6 +1551,7 @@ int get_digraph(bool cmdline)
/// @return If no match, return "char2". If "meta_char" is true and "char1"
// is a space, return "char2" | 0x80.
static int getexactdigraph(int char1, int char2, bool meta_char)
+ FUNC_ATTR_PURE
{
int retval = 0;
@@ -1601,6 +1602,7 @@ static int getexactdigraph(int char1, int char2, bool meta_char)
///
/// @return The digraph.
int digraph_get(int char1, int char2, bool meta_char)
+ FUNC_ATTR_PURE
{
int retval;