Set cursor on record below the first record deleted in the list for issue75
This commit is contained in:
1 parent
78e19329f5
commit
74cd69d7b0
1 file changed
+7
-1
@@ -473,9 +473,15 @@ class Screen(SignalEvent):
|
||||
except Exception, exception:
|
||||
common.process_exception(exception, self.window)
|
||||
return False
|
||||
idx = self.models.models.index(
|
||||
self.current_view.sel_models_get()[0])
|
||||
for model in self.current_view.sel_models_get():
|
||||
self.models.remove(model)
|
||||
self.current_model = None
|
||||
if self.models.models:
|
||||
idx = min(idx, len(self.models.models)-1)
|
||||
self.current_model = self.models.models[idx]
|
||||
else:
|
||||
self.current_model = None
|
||||
if reload_ids:
|
||||
self.models.reload(reload_ids)
|
||||
self.current_view.set_cursor()
|
||||
|
||||
Reference in new issue
Block a user