mirror of
https://github.com/neovim/neovim.git
synced 2025-12-06 22:52:42 +00:00
Introduce nvim namespace: Fix clint.
- Fix path to clint-checked files. - Fix mechanism to calculate define guard names.
This commit is contained in:
@@ -1,37 +1,37 @@
|
||||
src/indent.c
|
||||
src/indent.h
|
||||
src/log.c
|
||||
src/log.h
|
||||
src/os/env.c
|
||||
src/os/event.c
|
||||
src/os/event_defs.h
|
||||
src/os/event.h
|
||||
src/os/input.c
|
||||
src/os/input.h
|
||||
src/os/rstream.c
|
||||
src/os/rstream_defs.h
|
||||
src/os/rstream.h
|
||||
src/os/job.c
|
||||
src/os/job_defs.h
|
||||
src/os/job.h
|
||||
src/os/mem.c
|
||||
src/os/os.h
|
||||
src/os/shell.c
|
||||
src/os/shell.h
|
||||
src/os/signal.c
|
||||
src/os/signal.h
|
||||
src/os/time.c
|
||||
src/os/time.h
|
||||
src/os/msgpack_rpc.h
|
||||
src/os/msgpack_rpc.c
|
||||
src/api/defs.h
|
||||
src/api/buffer.h
|
||||
src/api/buffer.c
|
||||
src/api/helpers.h
|
||||
src/api/helpers.c
|
||||
src/api/tabpage.h
|
||||
src/api/tabpage.c
|
||||
src/api/window.h
|
||||
src/api/window.c
|
||||
src/api/vim.h
|
||||
src/api/vim.c
|
||||
src/nvim/indent.c
|
||||
src/nvim/indent.h
|
||||
src/nvim/log.c
|
||||
src/nvim/log.h
|
||||
src/nvim/os/env.c
|
||||
src/nvim/os/event.c
|
||||
src/nvim/os/event_defs.h
|
||||
src/nvim/os/event.h
|
||||
src/nvim/os/input.c
|
||||
src/nvim/os/input.h
|
||||
src/nvim/os/rstream.c
|
||||
src/nvim/os/rstream_defs.h
|
||||
src/nvim/os/rstream.h
|
||||
src/nvim/os/job.c
|
||||
src/nvim/os/job_defs.h
|
||||
src/nvim/os/job.h
|
||||
src/nvim/os/mem.c
|
||||
src/nvim/os/os.h
|
||||
src/nvim/os/shell.c
|
||||
src/nvim/os/shell.h
|
||||
src/nvim/os/signal.c
|
||||
src/nvim/os/signal.h
|
||||
src/nvim/os/time.c
|
||||
src/nvim/os/time.h
|
||||
src/nvim/os/msgpack_rpc.h
|
||||
src/nvim/os/msgpack_rpc.c
|
||||
src/nvim/api/defs.h
|
||||
src/nvim/api/buffer.h
|
||||
src/nvim/api/buffer.c
|
||||
src/nvim/api/helpers.h
|
||||
src/nvim/api/helpers.c
|
||||
src/nvim/api/tabpage.h
|
||||
src/nvim/api/tabpage.c
|
||||
src/nvim/api/window.h
|
||||
src/nvim/api/window.c
|
||||
src/nvim/api/vim.h
|
||||
src/nvim/api/vim.c
|
||||
|
||||
4
clint.py
4
clint.py
@@ -627,7 +627,7 @@ class FileInfo:
|
||||
return os.path.abspath(self._filename).replace('\\', '/')
|
||||
|
||||
def RelativePath(self):
|
||||
"""FullName with /home/julian/c/neovim/src/ chopped off."""
|
||||
"""FullName with <prefix>/src/nvim/ chopped off."""
|
||||
fullname = self.FullName()
|
||||
|
||||
if os.path.exists(fullname):
|
||||
@@ -639,7 +639,7 @@ class FileInfo:
|
||||
root_dir = os.path.dirname(root_dir)
|
||||
|
||||
if os.path.exists(os.path.join(root_dir, ".git")):
|
||||
root_dir = os.path.join(root_dir, "src")
|
||||
root_dir = os.path.join(root_dir, "src", "nvim")
|
||||
prefix = os.path.commonprefix([root_dir, project_dir])
|
||||
return fullname[len(prefix) + 1:]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user