aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/buffer.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-23 15:49:49 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-23 16:06:59 -0300
commitf03a7672e18fe57b1e4de17abf2a193f8b343562 (patch)
treecabe98a4d89d108365db67559580cbbb930aad2b /src/nvim/api/buffer.c
parent9815688fbdeb7bc1f1a28b9d827b31eea4fe8cfb (diff)
downloadrneovim-f03a7672e18fe57b1e4de17abf2a193f8b343562.tar.gz
rneovim-f03a7672e18fe57b1e4de17abf2a193f8b343562.tar.bz2
rneovim-f03a7672e18fe57b1e4de17abf2a193f8b343562.zip
API: Refactor: Fix buffer_get_mark
Diffstat (limited to 'src/nvim/api/buffer.c')
-rw-r--r--src/nvim/api/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c
index 929735a6b9..bf30ccf856 100644
--- a/src/nvim/api/buffer.c
+++ b/src/nvim/api/buffer.c
@@ -364,7 +364,7 @@ Position buffer_get_mark(Buffer buffer, String name, Error *err)
return rv;
}
- if (name.size != 0) {
+ if (name.size != 1) {
set_api_error("mark name must be a single character", err);
return rv;
}