Hide command docs if needed

pull/8339/head
ItsEthra 1 year ago
parent 54430b7c6f
commit 2533876ad7

@ -3199,6 +3199,8 @@ pub(super) fn command_mode(cx: &mut Context) {
} }
}, },
); );
if cx.editor.config().command_docs {
prompt.doc_fn = Box::new(|input: &str| { prompt.doc_fn = Box::new(|input: &str| {
let part = input.split(' ').next().unwrap_or_default(); let part = input.split(' ').next().unwrap_or_default();
@ -3213,6 +3215,7 @@ pub(super) fn command_mode(cx: &mut Context) {
None None
}); });
}
// Calculate initial completion // Calculate initial completion
prompt.recalculate_completion(cx.editor); prompt.recalculate_completion(cx.editor);

Loading…
Cancel
Save