diff options
author | ZyX <kp-pav@yandex.ru> | 2015-12-26 00:44:25 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2016-02-01 21:40:46 +0300 |
commit | ad5cb87d7af772711579ad825e32a7cbddcd5170 (patch) | |
tree | e865399183e7b1af7630172efcffc5d5f2ef7bc6 | |
parent | 1a356e64390a6a2db3d428960f161997db7c48e1 (diff) | |
download | rneovim-ad5cb87d7af772711579ad825e32a7cbddcd5170.tar.gz rneovim-ad5cb87d7af772711579ad825e32a7cbddcd5170.tar.bz2 rneovim-ad5cb87d7af772711579ad825e32a7cbddcd5170.zip |
eval: Add +tablineat feature
-rw-r--r-- | runtime/doc/eval.txt | 1 | ||||
-rw-r--r-- | runtime/doc/options.txt | 2 | ||||
-rw-r--r-- | runtime/doc/various.txt | 1 | ||||
-rw-r--r-- | src/nvim/eval.c | 1 | ||||
-rw-r--r-- | test/functional/ui/mouse_spec.lua | 3 |
5 files changed, 7 insertions, 1 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 766dafd1d7..e4311b3ba0 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -7063,6 +7063,7 @@ statusline Compiled with support for 'statusline', 'rulerformat' syntax Compiled with syntax highlighting support |syntax|. syntax_items There are active syntax highlighting items for the current buffer. +tablineat 'tabline' option accepts %@Func@ items. tag_binary Compiled with binary searching in tags files |tag-binary-search|. tag_old_static Compiled with support for old static tags diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 91f16db833..51bfc12f9d 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -6042,6 +6042,8 @@ A jump table for the options with a short description can be found at |Q_op|. is a bug that denotes that new mouse button recognition was added without modifying code that reacts on mouse clicks on this label. + Note: to test whether your version of Neovim contains this + feature use `has('tablineat')`. < - Where to truncate line if too long. Default is at the start. No width fields allowed. = - Separation point between left and right aligned items. diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt index 26ff8f0783..ff37466a14 100644 --- a/runtime/doc/various.txt +++ b/runtime/doc/various.txt @@ -363,6 +363,7 @@ N *+startuptime* |--startuptime| argument N *+statusline* Options 'statusline', 'rulerformat' and special formats of 'titlestring' and 'iconstring' N *+syntax* Syntax highlighting |syntax| +N *+tablineat* 'tabline' option recognizing %@Func@ items. N *+tag_binary* binary searching in tags file |tag-binary-search| N *+tag_old_static* old method for static tags |tag-old-static| m *+tag_any_white* any white space allowed in tags file |tag-any-white| diff --git a/src/nvim/eval.c b/src/nvim/eval.c index e4e7b63fe3..6c471ab770 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -10930,6 +10930,7 @@ static void f_has(typval_T *argvars, typval_T *rettv) #if !defined(UNIX) "system", // TODO(SplinterOfChaos): This IS defined for UNIX! #endif + "tablineat", "tag_binary", "tag_old_static", "termresponse", diff --git a/test/functional/ui/mouse_spec.lua b/test/functional/ui/mouse_spec.lua index 25fa9d3f25..da9d6a0cd2 100644 --- a/test/functional/ui/mouse_spec.lua +++ b/test/functional/ui/mouse_spec.lua @@ -2,7 +2,7 @@ local helpers = require('test.functional.helpers') local Screen = require('test.functional.ui.screen') local clear, feed, meths = helpers.clear, helpers.feed, helpers.meths local insert, execute = helpers.insert, helpers.execute -local eq = helpers.eq +local eq, funcs = helpers.eq, helpers.funcs describe('Mouse input', function() local screen @@ -167,6 +167,7 @@ describe('Mouse input', function() local test_click = function(name, click_str, click_num, mouse_button, modifiers) it(name .. ' works', function() + eq(1, funcs.has('tablineat')) feed(click_str .. '<3,0>') check_reply({0, click_num, mouse_button, modifiers}) feed(click_str .. '<4,0>') |