about summary refs log tree commit diff stats
path: root/commands.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-11-18 12:21:30 -0800
committerKartik K. Agaram <vc@akkartik.com>2023-11-18 12:21:30 -0800
commitde66b015bcfbf4a995b25cc74c5f95d2362760a8 (patch)
tree2fb180163f064f2a2a2713012b26dcb9a1d74273 /commands.lua
parenta8dc0ee2be9ebbc55f40bbc12b591a6b2d4a0cfe (diff)
parent007b965b11b681550ee2e2244a2f53e64e88697d (diff)
downloadview.love-de66b015bcfbf4a995b25cc74c5f95d2362760a8.tar.gz
Merge lines.love
Diffstat (limited to 'commands.lua')
-rw-r--r--commands.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands.lua b/commands.lua
index a76bae5..1f8e304 100644
--- a/commands.lua
+++ b/commands.lua
@@ -136,7 +136,7 @@ end
 
 function move_candidate_to_front(s)
   local index = array.find(File_navigation.all_candidates, s)
-  assert(index)
+  assert(index, 'file missing from manifest')
   table.remove(File_navigation.all_candidates, index)
   table.insert(File_navigation.all_candidates, 1, s)
 end