process_see_reference: look for name.s before functions (#257)
The `@see` reference for an item like the following might point to
itself, although this is in `@module tag` and there is
`tag.master_width_factor` also.
```
--- The default master width factor
--
-- @beautiful beautiful.master_width_factor
-- @param number (default: 0.5)
-- @see master_width_factor
-- @see gap
```
548b15e883/lib/awful/tag.lua (L564-L569)
This patch makes it look for the absolute reference using the module
name first.
This commit is contained in:
parent
e6e6a79e19
commit
bb55647363
|
@ -1180,6 +1180,10 @@ function Module:process_see_reference (s,modules,istype)
|
||||||
end
|
end
|
||||||
mod_ref = modules.by_name[self.package..'.'..s]
|
mod_ref = modules.by_name[self.package..'.'..s]
|
||||||
if ismod(mod_ref) then return reference(s, mod_ref,nil) end
|
if ismod(mod_ref) then return reference(s, mod_ref,nil) end
|
||||||
|
|
||||||
|
fun_ref = self.items.by_name[self.name..'.'..s]
|
||||||
|
if fun_ref then return reference(self.name..'.'..s,self,fun_ref) end
|
||||||
|
|
||||||
fun_ref = self:get_fun_ref(s)
|
fun_ref = self:get_fun_ref(s)
|
||||||
if fun_ref then return reference(s,self,fun_ref)
|
if fun_ref then return reference(s,self,fun_ref)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue