Improved editor setting, try to use correct values for line wrapping with nano, and skipping headers with both nano and ne.
This commit is contained in:
		@@ -191,7 +191,12 @@ initialize_directory()
 | 
				
			|||||||
        if [ -z "$i" ]; then
 | 
					        if [ -z "$i" ]; then
 | 
				
			||||||
            exit 0
 | 
					            exit 0
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
        echo "set editor=$i" > "$muttHome/muttrc"
 | 
					        # Try to handle special cases like with ne and nano skipping headers and line wrapping.
 | 
				
			||||||
 | 
					        case "$i" in
 | 
				
			||||||
 | 
					            "nano") echo "set editor=$i +7 -r 72" > "$muttHome/muttrc";;
 | 
				
			||||||
 | 
					            "ne") echo "set editor=$i +7" > "$muttHome/muttrc";;
 | 
				
			||||||
 | 
					            *) echo "set editor=$i +7" > "$muttHome/muttrc";;
 | 
				
			||||||
 | 
					        esac
 | 
				
			||||||
        echo "set text_flowed=yes" >> "$muttHome/muttrc"
 | 
					        echo "set text_flowed=yes" >> "$muttHome/muttrc"
 | 
				
			||||||
        # I need to figure out a way to detect and set the language for the next setting.
 | 
					        # I need to figure out a way to detect and set the language for the next setting.
 | 
				
			||||||
        echo "set send_charset=us-ascii:utf-8" >> "$muttHome/muttrc"
 | 
					        echo "set send_charset=us-ascii:utf-8" >> "$muttHome/muttrc"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user