Maximus5 / conemu-old-issues

Old issues imported from googlecode. Project was moved to
https://conemu.github.io
6 stars 1 forks source link

ConEmu.Editor.lua bug #1583

Open Maximus5 opened 9 years ago

Maximus5 commented 9 years ago

Originally reported on Google Code with ID 1583

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.

Reported by c2h5oh777 on 2014-05-22 07:47:42

Maximus5 commented 9 years ago
https://github.com/Maximus5/ConEmu/commit/28f75735a3e9d1651637518d52c53c94abe6ff5d

Reported by ConEmu.Maximus5 on 2014-05-22 07:57:03