Skip to content

Commit c58925c

Browse files
authored
Merge branch 'main' into lenemter/cleanup-tab-icon
2 parents 4dc4c98 + f103e7d commit c58925c

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/Widgets/TerminalWidget.vala

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ namespace Terminal {
6262
public const string[] ACCELS_RESET = { "<Control><Shift>K", null };
6363
public const string[] ACCELS_PASTE = { "<Control><Shift>V", null };
6464
public const string[] ACCELS_RELOAD = { "<Control><Shift>R", "<Ctrl>F5", null };
65-
public const string[] ACCELS_SCROLL_TO_COMMAND = { "<Alt>Up", null };
6665
public const string[] ACCELS_SELECT_ALL = { "<Control><Shift>A", null };
6766
// Specify zooming shortcuts for use by tooltips in SettingsPopover. We don't use actions for this.
6867
public const string[] ACCELS_ZOOM_DEFAULT = { "<control>0", "<Control>KP_0", null };
@@ -211,7 +210,7 @@ namespace Terminal {
211210
);
212211

213212
var scroll_to_command_shortcut = new Gtk.Shortcut (
214-
new Gtk.KeyvalTrigger (Gdk.Key.Up, ALT_MASK),
213+
new Gtk.KeyvalTrigger (Gdk.Key.U, ALT_MASK),
215214
new Gtk.NamedAction ("term.scroll-to-command")
216215
);
217216

@@ -682,8 +681,9 @@ namespace Terminal {
682681
feed_command (command);
683682
}
684683

684+
private string old_loc = "";
685685
public void reload () {
686-
var old_loc = get_shell_location ();
686+
old_loc = get_shell_location ();
687687
confirm_kill_fg_process (
688688
_("Are you sure you want to reload this tab?"),
689689
_("Reload"),
@@ -1109,11 +1109,10 @@ namespace Terminal {
11091109
}
11101110

11111111
private void scroll_to_command (GLib.SimpleAction action, GLib.Variant? parameter) {
1112+
//Note. This does not work when running under `tmux` - native scrolling is suppressed in a tmux pane
11121113
long row, delta;
1113-
11141114
get_cursor_position (null, out row);
11151115
delta = remembered_position - row;
1116-
11171116
vadjustment.value += (int) delta + height_request / get_char_height () - 1;
11181117
action.set_enabled (false); // Repeated presses are ignored
11191118
}

0 commit comments

Comments
 (0)