File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 561561 MacroModeState . prototype = {
562562 exitMacroRecordMode : function ( ) {
563563 var macroModeState = vimGlobalState . macroModeState ;
564- macroModeState . onRecordingDone ( ) ; // close dialog
564+ if ( macroModeState . onRecordingDone ) {
565+ macroModeState . onRecordingDone ( ) ; // close dialog
566+ }
565567 macroModeState . onRecordingDone = undefined ;
566568 macroModeState . isRecording = false ;
567569 } ,
571573 if ( register ) {
572574 register . clear ( ) ;
573575 this . latestRegister = registerName ;
574- this . onRecordingDone = cm . openDialog (
575- '(recording)[' + registerName + ']' , null , { bottom :true } ) ;
576+ if ( cm . openDialog ) {
577+ this . onRecordingDone = cm . openDialog (
578+ '(recording)[' + registerName + ']' , null , { bottom :true } ) ;
579+ }
576580 this . isRecording = true ;
577581 }
578582 }
You can’t perform that action at this time.
0 commit comments