TobiasChe / conemu-maximus5

Automatically exported from code.google.com/p/conemu-maximus5
0 stars 0 forks source link

ConEmu.Editor.lua bug #1583

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
local ConEmu   = "4b675d80-1d4a-4ea9-8436-fdc23f2fc14b"

Macro {
  area="Shell Search"; key="F3 F4"; flags="NoPluginPanels"; description="ConEmu: Auto switch to Editor Tab"; action = function()

  k = akey(1,1);

  if   not APanel.Empty  and  (APanel.Current~="..") then 
    s=APanel.Path..mf.iif(mf.substr(s,mf.len(s)-1)=="\\","","\\")..APanel.Current;
----------------

Переменная "s" не объявлена локальной, 
поэтому в mf.len(s) попадает значение 
глобальной s из RESearch.lua, вызывая ошибку при 
попытке открытия файлов во вьювере и в 
редакторе FAR3.

Original issue reported on code.google.com by c2h5oh...@gmail.com on 22 May 2014 at 7:47

GoogleCodeExporter commented 9 years ago
https://github.com/Maximus5/ConEmu/commit/28f75735a3e9d1651637518d52c53c94abe6ff
5d

Original comment by ConEmu.Maximus5 on 22 May 2014 at 7:57