File tree 1 file changed +9
-7
lines changed
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)
23
23
)
24
24
return
25
25
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
33
35
end
34
36
-- Redo
35
37
local bau = _G .compiler_redo_bau
You can’t perform that action at this time.
0 commit comments