Explorar el Código

preview-tui: wait killed previewers (#632)

master
lvgx GitHub hace 4 años
padre
commit
2acc7bd324
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      plugins/preview-tui

+ 2
- 2
plugins/preview-tui Ver fichero

@@ -52,7 +52,7 @@ fifo_pager() {
}

preview_file () {
kill %- %+ 2>/dev/null
kill %- %+ 2>/dev/null && wait %- %+ 2>/dev/null
clear

encoding="$(file -Lb --mime-encoding -- "$1")"
@@ -60,7 +60,7 @@ preview_file () {
# Detect mime type
mimetype="$(file -Lb --mime-type -- "$1")"

# Detect file extention - use if you need
# Detect file extention
ext="${1##*.}"
if [ -n "$ext" ]; then
ext="$(printf "%s" "${ext}" | tr '[:upper:]' '[:lower:]')"


||||||
x
 
000:0
Cargando…
Cancelar
Guardar