Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

if-lua now includes io.*; remove workaround

  • Loading branch information...
commit 5f3bdbafcc5258487e94cf55dae9cde5374d97d1 1 parent 527e1b7
Peter Odding authored August 12, 2010

Showing 2 changed files with 12 additions and 8 deletions. Show diff stats Hide diff stats

  1. 12  TODO.md
  2. 8  autoload.vim
12  TODO.md
Source Rendered
@@ -3,4 +3,14 @@
3 3
  * OMNI completion for in scope variables (including display of library function signatures).
4 4
  * Document g:lua_inspect_path option.
5 5
  * Check whether "core/SciTE: jump to definition now supports functions in different files." is interesting.
6  
- * Use the new 'init.get_variable_details' function to replace most of actions.tooltip()?
  6
+ * Use the new 'init.get_variable_details' function to replace most of actions.tooltip()? Can't do this until the references to `buffer` and `editor` are removed:
  7
+    if ast.localmasking then
  8
+      info = info .. "masking "
  9
+      local fpos = LA.ast_pos_range(ast.localmasking, buffer.tokenlist)
  10
+      if fpos then
  11
+        local linenum0 = editor:LineFromPosition(fpos)
  12
+        info = info .. "definition at line " .. (linenum0+1) .. " "
  13
+      end
  14
+    end
  15
+ * Bug: Argument count warning tool tips are only shown for parts of the highlighted text.
  16
+ * Bug: The plug-in warns `Invalid output from luainspect4vim.lua: 'This is an unknown table field.'`. Mixup between tool tip / highlight response parsing?!
8  autoload.vim
@@ -125,13 +125,7 @@ function! s:parse_text(input, search_path) " {{{1
125 125
       endtry
126 126
     else
127 127
       redir => output
128  
-      silent lua << EOF
129  
-      if io == nil then
130  
-        -- The Lua interface for Vim previously didn't include io.*!
131  
-        io = { type = function() end }
132  
-      end
133  
-      require 'luainspect4vim' (vim.eval 'a:input')
134  
-EOF
  128
+      silent lua require 'luainspect4vim' (vim.eval 'a:input')
135 129
       redir END
136 130
       let b:luainspect_output = split(output, "\n")
137 131
     endif

0 notes on commit 5f3bdba

Please sign in to comment.
Something went wrong with that request. Please try again.