@@ -204,14 +204,14 @@ _initiate_ssh_connection(NemoTerminalWidget *self,
204204 {
205205 // Remove trailing '\n' from ssh_command_line_nl and append "; exit\n"
206206 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" );
208208 final_command_to_feed = g_string_free (str_builder , FALSE);
209209 }
210210 else
211211 {
212212 // Fallback: Should not happen if build_ssh_command_string is consistent
213213 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 );
215215 }
216216 g_free (ssh_command_line_nl ); // Free the original command string
217217
@@ -344,7 +344,7 @@ on_ssh_exit_activate(GtkWidget *widget, gpointer user_data)
344344 // Send "exit\n" to the terminal. This should terminate the remote shell.
345345 // The "; exit" part of the original ssh command will then cause the local
346346 // 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 );
348348
349349 // Proactively reset the terminal state. on_terminal_child_exited will see
350350 // is_exiting_ssh = TRUE and will not attempt another reset.
@@ -2917,7 +2917,7 @@ on_terminal_contents_changed(VteTerminal *terminal,
29172917 self -> pending_ssh_sync_mode == NEMO_TERMINAL_SYNC_TERM_TO_FM )
29182918 {
29192919 // 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" ;
29212921 vte_terminal_feed_child (self -> terminal , osc7_export_cmd , -1 );
29222922 }
29232923
0 commit comments