mirror of
https://github.com/sharkdp/bat.git
synced 2025-04-25 20:18:21 +02:00
undid unnecessary api visibility changes
This commit is contained in:
parent
7ce010d9ed
commit
02077db53e
@ -240,7 +240,7 @@ fn set_terminal_title_to(new_terminal_title: String) {
|
|||||||
fn get_new_terminal_title(inputs: &Vec<Input>) -> String {
|
fn get_new_terminal_title(inputs: &Vec<Input>) -> String {
|
||||||
let mut new_terminal_title = "bat: ".to_string();
|
let mut new_terminal_title = "bat: ".to_string();
|
||||||
for (index, input) in inputs.iter().enumerate() {
|
for (index, input) in inputs.iter().enumerate() {
|
||||||
new_terminal_title += &input.description.name.to_string();
|
new_terminal_title += input.description().title();
|
||||||
if index < inputs.len() - 1 {
|
if index < inputs.len() - 1 {
|
||||||
new_terminal_title += ", ";
|
new_terminal_title += ", ";
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ use crate::error::*;
|
|||||||
/// This tells bat how to refer to the input.
|
/// This tells bat how to refer to the input.
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct InputDescription {
|
pub struct InputDescription {
|
||||||
pub name: String,
|
pub(crate) name: String,
|
||||||
|
|
||||||
/// The input title.
|
/// The input title.
|
||||||
/// This replaces the name if provided.
|
/// This replaces the name if provided.
|
||||||
@ -94,7 +94,7 @@ pub(crate) struct InputMetadata {
|
|||||||
pub struct Input<'a> {
|
pub struct Input<'a> {
|
||||||
pub(crate) kind: InputKind<'a>,
|
pub(crate) kind: InputKind<'a>,
|
||||||
pub(crate) metadata: InputMetadata,
|
pub(crate) metadata: InputMetadata,
|
||||||
pub description: InputDescription,
|
pub(crate) description: InputDescription,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) enum OpenedInputKind {
|
pub(crate) enum OpenedInputKind {
|
||||||
|
Loading…
Reference in New Issue
Block a user