Take into account dirty buffers in suggest output; Fixes zah/nimrod.vim#14
This commit is contained in:
parent
06b3852143
commit
5dfc0d0d19
4 changed files with 21 additions and 8 deletions
|
|
@ -413,7 +413,7 @@ type
|
|||
TFileInfo*{.final.} = object
|
||||
fullPath*: string # This is a canonical full filesystem path
|
||||
projPath*: string # This is relative to the project's root
|
||||
|
||||
shortName*: string # short name of the module
|
||||
quotedName*: PRope # cached quoted short name for codegen
|
||||
# purpoes
|
||||
|
||||
|
|
@ -473,7 +473,9 @@ proc newFileInfo(fullPath, projPath: string): TFileInfo =
|
|||
#shallow(result.fullPath)
|
||||
result.projPath = projPath
|
||||
#shallow(result.projPath)
|
||||
result.quotedName = projPath.extractFilename.makeCString
|
||||
let fileName = projPath.extractFilename
|
||||
result.shortName = fileName.changeFileExt("")
|
||||
result.quotedName = fileName.makeCString
|
||||
if optEmbedOrigSrc in gGlobalOptions or true:
|
||||
result.lines = @[]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue