File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,15 @@ M.setup = function(opts)
2323 )
2424 return
2525 end
26- -- If filetype is not the same as when the option was selected, send a notification.
27- local current_filetype = vim .bo .filetype
28- if _G .compiler_redo_filetype ~= current_filetype then
29- vim .notify (" You are on a different language now. Open the compiler and select an option before doing redo." ,
30- vim .log .levels .INFO , { title = " Compiler.nvim" }
31- )
32- return
26+ if _G .compiler_redo_filetype then
27+ -- If filetype is not the same as when the option was selected, send a notification.
28+ local current_filetype = vim .bo .filetype
29+ if _G .compiler_redo_filetype ~= current_filetype then
30+ vim .notify (" You are on a different language now. Open the compiler and select an option before doing redo." ,
31+ vim .log .levels .INFO , { title = " Compiler.nvim" }
32+ )
33+ return
34+ end
3335 end
3436 -- Redo
3537 local bau = _G .compiler_redo_bau
You canât perform that action at this time.
0 commit comments