diff options
author | Canop <cano.petrole@gmail.com> | 2020-07-14 21:58:12 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-07-14 21:58:12 +0200 |
commit | d198f840c44118bc7e9af0bd03c2db9bcb1d699f (patch) | |
tree | 46f6b2c2b08f550963018a8f18bfc8e1836c35d3 /src/browser/browser_state.rs | |
parent | cc83313ef6d6ef076699207e3e92b64390f70afd (diff) |
chars in binary preview
Diffstat (limited to 'src/browser/browser_state.rs')
-rw-r--r-- | src/browser/browser_state.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/browser/browser_state.rs b/src/browser/browser_state.rs index 579eadf..0dcfc16 100644 --- a/src/browser/browser_state.rs +++ b/src/browser/browser_state.rs @@ -460,7 +460,8 @@ impl AppState for BrowserState { } Internal::panel_left => { if cc.areas.is_first() { - if cc.preview.is_some() && cc.areas.nb_pos == 2 { + //if cc.preview.is_some() && cc.areas.nb_pos == 2 { + if cc.preview.is_some() && self.selected_path().is_file() { AppStateCmdResult::ClosePanel { validate_purpose: false, id: cc.preview, |