about summary refs log tree commit diff stats
path: root/code
diff options
context:
space:
mode:
Diffstat (limited to 'code')
-rw-r--r--code/directory.rb4
-rw-r--r--code/fm.rb2
2 files changed, 5 insertions, 1 deletions
diff --git a/code/directory.rb b/code/directory.rb
index d00a2eb6..870ecbb1 100644
--- a/code/directory.rb
+++ b/code/directory.rb
@@ -247,5 +247,9 @@ class Directory
 		@files_raw = files.map{|x| x.to_s}
 		@files = files
 	end
+
+	def changed?
+		File.mtime(@path) != @mtime
+	end
 end
 
diff --git a/code/fm.rb b/code/fm.rb
index 6426dd14..974e8c65 100644
--- a/code/fm.rb
+++ b/code/fm.rb
@@ -217,7 +217,7 @@ module Fm
 		end
 
 		@pwd = @path.last
-		@pwd.refresh
+		@pwd.refresh! if @pwd.changed?
 		@pwd.pos = @pwd.pos
 
 		## initialize directories in @pwd
title='Blame the previous revision' href='/akkartik/mu/blame/subx/run_one_test.sh?h=hlt&id=d818fdd7e52616adf293061ccbb42517d0e6f98f'>^
edac54a3 ^
749d455a ^
eada7e30 ^
edac54a3 ^


5ac07866 ^
01b6cfe4 ^
ab107e18 ^
0bcfe6e5 ^
d260b017 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24