File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ def update_subchannel_msgs(debug=False):
198
198
else :
199
199
db = []
200
200
b = vim .current.buffer
201
- startedin_vimipython = ( b .name is not None and b .name. endswith ( ' vim-ipython' ))
201
+ startedin_vimipython = vim . eval ( ' @% ' ) == ' vim-ipython'
202
202
if not startedin_vimipython:
203
203
# switch to preview window
204
204
vim .command (
@@ -217,9 +217,9 @@ def update_subchannel_msgs(debug=False):
217
217
vim .command (" pcl" )
218
218
vim .command (" silent pedit +set\ ma vim-ipython" )
219
219
vim .command (" wincmd P" ) #switch to preview window
220
- # subchannel window quick quit key ' q'
221
- vim .command (' map <buffer> q :q<CR>' )
222
- vim .command (" set bufhidden=hide buftype=nofile ft=python" )
220
+ # subchannel window quick quit key ' q'
221
+ vim .command (' map <buffer> q :q<CR>' )
222
+ vim .command (" set bufhidden=hide buftype=nofile ft=python" )
223
223
224
224
#syntax highlighting for python prompt
225
225
# QtConsole In[] is blue , but I prefer the oldschool green
You can’t perform that action at this time.
0 commit comments