Skip to content

Commit 9c7c61f

Browse files
committed
fix #119
1 parent c1e5cc5 commit 9c7c61f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

extrakto_plugin.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def has_single_pane(self):
257257

258258
def get_next_mode(self, next):
259259
if next == "initial":
260-
return os.environ.get("extrakto_inital_mode", self.modes_list[0])
260+
return os.environ.get("extrakto_inital_mode").strip() or self.modes_list[0]
261261
else:
262262
return self.next_mode[next]
263263

@@ -313,7 +313,8 @@ def capture(self):
313313
],
314314
get_cap(mode, self.capture_panes()),
315315
)
316-
except Exception as _:
316+
except Exception as e:
317+
print(e)
317318
print("error: unable to extract - check/report errors above")
318319
print("You can also set the fzf path in options (see readme).")
319320
input()

0 commit comments

Comments
 (0)