rtfm-filemanager 3.25 → 3.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rtfm +8 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 354d37b0c84cd1a4bc9f1c6923076ab0d8acdebccca9933aac966edd918125ca
4
- data.tar.gz: 0d393395786e90b8b18053fade19043c2525a8736a546ed0e9fa9f44c98c0238
3
+ metadata.gz: 3c368f9da8daffeb9d96a7146461f4096e8ccf318f4d0d73aca2ab3e7ff75d6f
4
+ data.tar.gz: c2dfc4cd08b433889845f9ba6dd8db9e1e5d3808823122512f296e4d9504526c
5
5
  SHA512:
6
- metadata.gz: fdb5804d4f2a6271168652e80f8c9c71697aa7e42aff709c5aeb37868595b69b5cdc8fb8029b00e3f4bb80ad4c53853023ca69a0fa77e89924522a8e076e06ee
7
- data.tar.gz: 96c982c709424a6eb32a3d63208a2360d209fefb1771241cbb359156482d22b314f799f59818f4879def92f093a88759badcd187607c1ce85728d0b508a6e2c1
6
+ metadata.gz: 19830eba041d7e3fe97761dba69b1feabefff19e5e434acdaf9449383aaf31da63f01a28e0c43fa29ac524ebd1bf1487462f00ef0609976c4c434ebe9c725a3c
7
+ data.tar.gz: 26ec6f0a1df169afab02a4b245121d2639591cfa241bee40f3e54ae47cdba65d2b2ec14cc44dd9bc54b96ec51c505553b4073cbdda66646c8020d166f1a656f8
data/bin/rtfm CHANGED
@@ -14,7 +14,7 @@
14
14
  # for any damages resulting from its use. Further, I am under no
15
15
  # obligation to maintain or extend this software. It is provided
16
16
  # on an 'as is' basis without any expressed or implied warranty.
17
- @version = "3.25"
17
+ @version = "3.26"
18
18
 
19
19
  # PRELIMINARIES
20
20
  @help = <<HELPTEXT
@@ -395,6 +395,7 @@ def getchr # PROCESS KEY PRESSES
395
395
  when /[[:print:]]/ then chr = c
396
396
  else chr = ""
397
397
  end
398
+ stdin_clear
398
399
  return chr
399
400
  end
400
401
  def main_getkey # GET KEY FROM USER
@@ -941,6 +942,12 @@ def main_getkey # GET KEY FROM USER
941
942
  rescue
942
943
  end
943
944
  end
945
+ def stdin_clear
946
+ begin
947
+ $stdin.getc while $stdin.ready?
948
+ rescue
949
+ end
950
+ end
944
951
  def conf_write
945
952
  if File.exist?(Dir.home+'/.rtfm.conf')
946
953
  conf = File.read(Dir.home+'/.rtfm.conf')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtfm-filemanager
3
3
  version: !ruby/object:Gem::Version
4
- version: '3.25'
4
+ version: '3.26'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
@@ -47,7 +47,7 @@ dependencies:
47
47
  description: 'A full featured terminal browser with syntax highlighted files, images
48
48
  shown in the terminal, videos thumbnailed, etc. You can bookmark and jump around
49
49
  easily, delete, rename, copy, symlink and move files. RTFM has a a wide range of
50
- other features. New in 3.25: Fixed the strange ESC bug'
50
+ other features. New in 3.26: Safeguarded against potential input bugs.'
51
51
  email: g@isene.com
52
52
  executables:
53
53
  - rtfm