diff options
| author | ThePrimeAgain <theprimeagain@theprimeagain.com> | 2025-12-26 15:25:30 -0700 |
|---|---|---|
| committer | ThePrimeAgain <theprimeagain@theprimeagain.com> | 2025-12-26 15:25:30 -0700 |
| commit | 6da68cdb8edea79f721479561ddc8d79e91981fe (patch) | |
| tree | e7e64edd62a76759ba891346a9b7bb3a3670d93d /lua/99/ops/marks.lua | |
| parent | 9f82332f402a51c17bb69ca5937d4ba7d8cf004a (diff) | |
| download | a4-6da68cdb8edea79f721479561ddc8d79e91981fe.tar.xz a4-6da68cdb8edea79f721479561ddc8d79e91981fe.zip | |
mid way through refactor when i realize i have another refactor
Diffstat (limited to 'lua/99/ops/marks.lua')
| -rw-r--r-- | lua/99/ops/marks.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/99/ops/marks.lua b/lua/99/ops/marks.lua index db3c0ee..d1bf7e6 100644 --- a/lua/99/ops/marks.lua +++ b/lua/99/ops/marks.lua @@ -37,6 +37,8 @@ end --- @return boolean function Mark:is_valid() + local pos = vim.api.nvim_buf_get_extmark_by_id(self.buffer, self.nsid, self.id, {}) + return #pos > 0 end --- @param buffer number |
