File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,9 @@ module.exports =
76
76
globalState .set (' highlightSearchPattern' , null )
77
77
78
78
@ subscribe (settings .observeConditionalKeymaps ()... )
79
- # developer?.reportRequireCache(excludeNodModules: true)
80
- developer ? .reportRequireCache (excludeNodModules : false )
79
+
80
+ if settings .get (' debug' )
81
+ developer ? .reportRequireCache (excludeNodModules : false )
81
82
82
83
observeVimMode : (fn ) ->
83
84
fn () if atom .packages .isPackageActive (' vim-mode' )
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ settings = require './settings'
7
7
ModeManager = require ' ./mode-manager'
8
8
9
9
LazyLoadedLibs = {}
10
- BlockwiseSelection = null
11
10
12
11
lazyRequire = (file ) ->
13
12
unless file of LazyLoadedLibs
@@ -207,10 +206,6 @@ class VimState
207
206
destroy : =>
208
207
return unless @ isAlive ()
209
208
@constructor .delete (@editor )
210
-
211
- BlockwiseSelection ?= require ' ./blockwise-selection'
212
- BlockwiseSelection .clearSelections (@editor )
213
-
214
209
@subscriptions .dispose ()
215
210
216
211
if @editor .isAlive ()
@@ -273,8 +268,7 @@ class VimState
273
268
@editor .setCursorBufferPosition (@editor .getCursorBufferPosition ())
274
269
275
270
resetNormalMode : ({userInvocation}= {}) ->
276
- BlockwiseSelection ?= require ' ./blockwise-selection'
277
- BlockwiseSelection .clearSelections (@editor )
271
+ @ getProp (' swrap' )? .clearBlockwiseSelections ()
278
272
279
273
if userInvocation ? false
280
274
switch
You can’t perform that action at this time.
0 commit comments