Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2dbf39c

Browse files
committed
Set 'parent' field of new created subwindows so wdiff can implement
'close subwindows' command.
1 parent 5c12487 commit 2dbf39c

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Lib/lib-stdwin/dirwin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ def action(w, string, i, detail):
1313
if clicks = 2:
1414
name = path.cat(w.name, string)
1515
try:
16-
w = anywin.open(name)
16+
w2 = anywin.open(name)
17+
w2.parent = w
1718
except posix.error, why:
1819
stdwin.message('Can\'t open ' + name + ': ' + why[1])
1920

Lib/stdwin/dirwin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ def action(w, string, i, detail):
1313
if clicks = 2:
1414
name = path.cat(w.name, string)
1515
try:
16-
w = anywin.open(name)
16+
w2 = anywin.open(name)
17+
w2.parent = w
1718
except posix.error, why:
1819
stdwin.message('Can\'t open ' + name + ': ' + why[1])
1920

0 commit comments

Comments
 (0)