@@ -204,14 +204,14 @@ _initiate_ssh_connection(NemoTerminalWidget *self,
204
204
{
205
205
// Remove trailing '\n' from ssh_command_line_nl and append "; exit\n"
206
206
GString * str_builder = g_string_new_len (ssh_command_line_nl , strlen (ssh_command_line_nl ) - 1 );
207
- g_string_append (str_builder , "; exit\n" );
207
+ g_string_append (str_builder , "; exit\n" );
208
208
final_command_to_feed = g_string_free (str_builder , FALSE);
209
209
}
210
210
else
211
211
{
212
212
// Fallback: Should not happen if build_ssh_command_string is consistent
213
213
g_warning ("_initiate_ssh_connection: ssh_command_line_nl did not end with newline as expected." );
214
- final_command_to_feed = g_strconcat (ssh_command_line_nl , "; exit\n" , NULL );
214
+ final_command_to_feed = g_strconcat (ssh_command_line_nl , "; exit\n" , NULL );
215
215
}
216
216
g_free (ssh_command_line_nl ); // Free the original command string
217
217
@@ -344,7 +344,7 @@ on_ssh_exit_activate(GtkWidget *widget, gpointer user_data)
344
344
// Send "exit\n" to the terminal. This should terminate the remote shell.
345
345
// The "; exit" part of the original ssh command will then cause the local
346
346
// child process (that ran ssh) to exit, triggering on_terminal_child_exited.
347
- vte_terminal_feed_child (self -> terminal , "exit\n" , -1 );
347
+ vte_terminal_feed_child (self -> terminal , " exit\n" , -1 );
348
348
349
349
// Proactively reset the terminal state. on_terminal_child_exited will see
350
350
// is_exiting_ssh = TRUE and will not attempt another reset.
@@ -2917,7 +2917,7 @@ on_terminal_contents_changed(VteTerminal *terminal,
2917
2917
self -> pending_ssh_sync_mode == NEMO_TERMINAL_SYNC_TERM_TO_FM )
2918
2918
{
2919
2919
// Simple PROMPT_COMMAND for OSC7.
2920
- const char * osc7_export_cmd = "export PROMPT_COMMAND='echo -en \"\\033]7;file://$PWD\\007\"'\n" ;
2920
+ const char * osc7_export_cmd = " export PROMPT_COMMAND='echo -en \"\\033]7;file://$PWD\\007\"'\n" ;
2921
2921
vte_terminal_feed_child (self -> terminal , osc7_export_cmd , -1 );
2922
2922
}
2923
2923
0 commit comments