micro/internal/action
Dmytro Maluka 5510317942
Relocate buffer view when reloading file (#3250)
After reloading a file that has been externally modified, the buffer
view may become invalid: the displayed subset of lines of the file may
no longer exist, since the file may have been truncated. So relocate the
buffer view in this case.

In particular, this fixes crashes caused by out of bounds accesses to
the line array by displayBuffer() trying to display no longer existing
lines.
2024-04-21 22:49:01 +02:00
..
actions.go Escape regex in pre-filled search pattern in Find prompt 2024-03-15 12:25:39 +01:00
actions_other.go Change project layout and use go.mod 2019-12-25 17:05:10 -05:00
actions_posix.go Fix v2 import path for go mod 2020-05-04 10:16:15 -04:00
bindings.go Merge pull request #2959 from JoeKar/fix/raw-esc-sequence 2024-03-14 04:38:05 +01:00
bufpane.go Relocate buffer view when reloading file (#3250) 2024-04-21 22:49:01 +02:00
command.go Relocate buffer view when reloading file (#3250) 2024-04-21 22:49:01 +02:00
defaults.go Update keybinding docs 2020-09-06 17:38:23 -04:00
defaults_darwin.go Merge pull request #2606 from dmaluka/mouse-release-and-drag-events 2024-03-14 03:54:04 +01:00
defaults_other.go Merge pull request #2606 from dmaluka/mouse-release-and-drag-events 2024-03-14 03:54:04 +01:00
events.go Introduce mouse release and mouse drag events 2023-01-29 18:21:59 +01:00
globals.go Improve comments 2021-08-21 17:58:30 -04:00
infocomplete.go action: Fix the duplication of the unknown filetype (#3258) 2024-04-19 06:01:27 +02:00
infopane.go Forward resize event to both TabList and InfoBar (#3179) 2024-03-21 21:40:22 +01:00
keytree.go More style improvements 2021-08-21 18:04:08 -04:00
pane.go More style improvements 2021-08-21 18:04:08 -04:00
rawpane.go Update to tcell v2 2020-09-05 14:52:35 -04:00
tab.go Merge pull request #2606 from dmaluka/mouse-release-and-drag-events 2024-03-14 03:54:04 +01:00
terminal_supported.go Check error in terminal emulator 2020-07-27 17:43:55 -04:00
terminal_unsupported.go Use actual lua functions for callbacks instead of strings 2020-02-08 15:49:41 -05:00
termpane.go Fix internal string binding representation 2020-11-05 15:52:25 -05:00