Commits

pSub  committed a7c48e0

End line correctly with \n, to avoid ugly shell prompts

  • Participants
  • Parent commits 1fdaec4

Comments (0)

Files changed (1)

 			cursor = strlen(text);
 			match(TRUE);
 			drawmenu();
+			insert("\n", strlen(buf));
 			puts(sel ? sel->text : text);
 			return EXIT_SUCCESS;
 		case CONTROL(']'):
 		case CONTROL('\\'): /* These are usually close enough to RET to replace Shift+RET, again due to console limitations */
+			insert("\n", strlen(buf));
 			puts(text);
 			return EXIT_SUCCESS;
 		case CONTROL('A'):