diff options
Diffstat (limited to '')
| -rw-r--r-- | plugin/haredoc.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/haredoc.vim b/plugin/haredoc.vim index 2ab9695..73a4dac 100644 --- a/plugin/haredoc.vim +++ b/plugin/haredoc.vim @@ -16,7 +16,7 @@ function Haredoc(symbol) let &iskeyword = oldiskeyword " resolve possibly partial symbols (chrono::moment) - if match(symbol, "::") != -1 + if match(symbol, "::") != -1 && &buftype == '' let [parent, base] = split(symbol, "::")[-2:-1] " try joining symbol with a use statement. |
