changeset 49:c17c5312e8de default tip

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 21 May 2025 11:50:10 -0600
parents ca5ae0a36db7
children
files src/luan_editor/window.luan
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
diff -r ca5ae0a36db7 -r c17c5312e8de src/luan_editor/window.luan
--- a/src/luan_editor/window.luan	Tue May 20 20:16:58 2025 -0600
+++ b/src/luan_editor/window.luan	Wed May 21 11:50:10 2025 -0600
@@ -105,7 +105,9 @@
 	list_view.remove_element(item) --or error()
 end
 list_view.add_list_selection_listener( function(item)
-	item.window.text_area.request_focus()
+	if item ~= nil then
+		item.window.text_area.request_focus()
+	end
 end )
 
 local black = int_to_color(0x000000)
@@ -152,7 +154,6 @@
 	end
 	text_area.set_selection(0)
 	local list_window_item = {
-		--text = title
 		window = window
 	}
 	add_list_window_item(list_window_item)